/*
 * This is a RANDOMLY GENERATED PROGRAM.
 *
 * Generator: csmith 2.4.0
 * Git version: 72c49db
 * Options:   --bitfields --packed-struct --output test324.c
 * Seed:      2655641944
 */

#include "csmith.h"


static long __undefined;

/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
static int32_t g_3 = (-2L);
static int32_t *g_44 = &g_3;
static int32_t **g_43 = &g_44;
static int16_t g_67 = 0x505DL;
static int32_t g_71 = 6L;
static int32_t g_110 = 0x25F89738L;
static uint16_t g_124 = 1UL;
static uint8_t g_126[7][1] = {{0x0DL},{255UL},{255UL},{0x0DL},{255UL},{255UL},{0x0DL}};
static uint8_t *** volatile g_127 = (void*)0;/* VOLATILE GLOBAL g_127 */
static uint8_t *g_130[1] = {&g_126[6][0]};
static uint8_t **g_129 = &g_130[0];
static uint8_t *** volatile g_128[10] = {(void*)0,&g_129,(void*)0,&g_129,&g_129,(void*)0,&g_129,(void*)0,&g_129,&g_129};
static uint32_t g_142 = 18446744073709551615UL;
static int32_t g_159[5][4] = {{4L,4L,4L,4L},{4L,4L,4L,4L},{4L,4L,4L,4L},{4L,4L,4L,4L},{4L,4L,4L,4L}};
static uint16_t g_160 = 1UL;
static int16_t **g_164[3] = {(void*)0,(void*)0,(void*)0};
static int16_t *** volatile g_163 = &g_164[2];/* VOLATILE GLOBAL g_163 */
static uint32_t g_172 = 0xA2CA7106L;
static uint64_t g_174 = 0UL;
static int8_t g_185 = 4L;
static const int32_t g_209 = (-1L);
static const int32_t *g_208 = &g_209;
static int32_t *g_214[7] = {(void*)0,&g_71,&g_71,(void*)0,&g_71,&g_71,&g_71};
static int64_t g_236 = (-5L);
static const uint16_t g_259 = 0x2C49L;
static int32_t * volatile g_272 = &g_71;/* VOLATILE GLOBAL g_272 */
static const uint8_t ****g_278 = (void*)0;
static const uint8_t ***** volatile g_277 = &g_278;/* VOLATILE GLOBAL g_277 */
static int32_t ***g_339 = &g_43;
static int16_t g_340 = 0x6D4AL;
static uint32_t g_502 = 0xB475D322L;
static uint64_t g_518 = 0x96CC4A8F72BD2894LL;
static volatile int16_t ** volatile * volatile g_522[3] = {(void*)0,(void*)0,(void*)0};
static int16_t g_571 = 1L;
static int16_t g_592 = 0x8C8DL;
static uint32_t *g_606[2][10] = {{&g_172,&g_172,&g_172,&g_172,&g_172,&g_172,&g_172,&g_172,&g_172,&g_172},{&g_172,&g_172,&g_172,&g_172,&g_172,&g_172,&g_172,&g_172,&g_172,&g_172}};
static uint32_t ** const  volatile g_605 = &g_606[0][2];/* VOLATILE GLOBAL g_605 */
static volatile int8_t g_615 = 1L;/* VOLATILE GLOBAL g_615 */
static int64_t *g_657 = &g_236;
static uint32_t g_659 = 18446744073709551610UL;
static int32_t * volatile g_662[4] = {&g_3,&g_3,&g_3,&g_3};
static int32_t * volatile g_663 = (void*)0;/* VOLATILE GLOBAL g_663 */
static int32_t g_689[1] = {0L};
static int32_t * const  volatile g_733 = &g_71;/* VOLATILE GLOBAL g_733 */
static const int64_t g_753 = 4L;
static volatile uint64_t ** volatile g_755 = (void*)0;/* VOLATILE GLOBAL g_755 */
static int32_t * volatile g_772[7][6][6] = {{{&g_689[0],&g_71,&g_689[0],&g_689[0],&g_689[0],&g_689[0]},{&g_3,&g_71,&g_71,&g_689[0],&g_689[0],&g_71},{&g_689[0],&g_689[0],(void*)0,&g_689[0],&g_689[0],&g_71},{&g_689[0],&g_71,&g_3,&g_71,&g_71,(void*)0},{&g_689[0],&g_689[0],&g_3,&g_3,&g_689[0],&g_71},{&g_689[0],&g_3,(void*)0,&g_689[0],&g_689[0],&g_71}},{{&g_689[0],&g_689[0],&g_71,&g_689[0],&g_689[0],&g_689[0]},{&g_689[0],&g_689[0],&g_689[0],&g_689[0],&g_689[0],&g_71},{&g_689[0],&g_3,&g_71,&g_71,&g_689[0],&g_689[0]},{&g_689[0],&g_689[0],&g_3,&g_689[0],&g_71,&g_71},{&g_689[0],&g_71,&g_689[0],&g_71,&g_689[0],&g_3},{&g_689[0],&g_689[0],&g_71,&g_689[0],&g_689[0],&g_689[0]}},{{&g_689[0],&g_71,&g_71,&g_689[0],&g_689[0],&g_689[0]},{&g_689[0],&g_71,&g_71,&g_689[0],&g_3,&g_3},{&g_689[0],(void*)0,&g_689[0],&g_3,&g_71,&g_71},{&g_689[0],&g_689[0],&g_3,&g_71,&g_71,&g_689[0]},{&g_689[0],(void*)0,&g_71,&g_689[0],&g_3,&g_71},{&g_689[0],&g_71,&g_689[0],&g_689[0],&g_689[0],&g_689[0]}},{{&g_3,&g_71,&g_71,&g_689[0],&g_689[0],&g_71},{&g_689[0],&g_689[0],(void*)0,&g_689[0],&g_689[0],&g_71},{&g_689[0],&g_71,&g_3,&g_71,&g_71,(void*)0},{&g_689[0],&g_689[0],&g_3,&g_3,&g_689[0],&g_71},{&g_689[0],&g_3,(void*)0,&g_689[0],&g_689[0],&g_71},{&g_689[0],&g_689[0],&g_71,&g_689[0],&g_689[0],&g_689[0]}},{{&g_689[0],&g_689[0],&g_689[0],&g_689[0],&g_689[0],&g_71},{&g_689[0],&g_3,&g_71,&g_71,&g_689[0],&g_689[0]},{&g_689[0],&g_689[0],&g_3,&g_689[0],&g_71,&g_689[0]},{&g_71,&g_689[0],&g_3,&g_689[0],&g_71,&g_689[0]},{&g_689[0],&g_689[0],&g_689[0],&g_71,&g_689[0],&g_689[0]},{&g_689[0],&g_689[0],&g_689[0],&g_689[0],&g_689[0],&g_689[0]}},{{&g_689[0],(void*)0,&g_689[0],&g_689[0],&g_689[0],&g_689[0]},{&g_689[0],&g_689[0],&g_3,&g_689[0],&g_689[0],&g_689[0]},{(void*)0,&g_689[0],&g_689[0],&g_689[0],&g_689[0],&g_689[0]},{&g_3,&g_689[0],&g_3,&g_71,&g_689[0],&g_71},{&g_689[0],(void*)0,&g_689[0],&g_689[0],&g_689[0],(void*)0},{&g_689[0],&g_689[0],&g_689[0],&g_689[0],&g_689[0],&g_689[0]}},{{&g_689[0],&g_689[0],&g_71,&g_71,&g_71,&g_3},{&g_3,&g_689[0],&g_689[0],&g_689[0],(void*)0,&g_71},{(void*)0,&g_3,&g_689[0],&g_689[0],&g_689[0],&g_3},{&g_689[0],&g_689[0],&g_71,&g_689[0],&g_689[0],&g_689[0]},{&g_689[0],&g_689[0],&g_689[0],&g_689[0],(void*)0,(void*)0},{&g_689[0],&g_689[0],&g_689[0],&g_71,&g_689[0],&g_71}}};
static int32_t * volatile g_776[7] = {&g_689[0],&g_689[0],&g_689[0],&g_689[0],&g_689[0],&g_689[0],&g_689[0]};
static volatile int64_t g_821 = 0L;/* VOLATILE GLOBAL g_821 */
static volatile int64_t *g_820 = &g_821;
static volatile int64_t ** volatile g_819[9] = {&g_820,&g_820,&g_820,&g_820,&g_820,&g_820,&g_820,&g_820,&g_820};
static int64_t **g_880 = (void*)0;
static int64_t *** volatile g_879 = &g_880;/* VOLATILE GLOBAL g_879 */
static uint16_t *g_927 = &g_124;
static uint16_t **g_926 = &g_927;
static int32_t g_935[10] = {0xEC36C747L,0xEC36C747L,0xEC36C747L,0xEC36C747L,0xEC36C747L,0xEC36C747L,0xEC36C747L,0xEC36C747L,0xEC36C747L,0xEC36C747L};
static volatile int8_t *g_971 = &g_615;
static volatile int8_t * volatile *g_970 = &g_971;
static uint8_t ***g_1052 = &g_129;
static uint8_t ****g_1051 = &g_1052;
static uint8_t *****g_1050 = &g_1051;
static int32_t *g_1114 = &g_689[0];
static const volatile int32_t *** volatile **g_1164 = (void*)0;
static volatile int32_t g_1188[10] = {0x20B278E2L,0x20B278E2L,0x20B278E2L,0x20B278E2L,0x20B278E2L,0x20B278E2L,0x20B278E2L,0x20B278E2L,0x20B278E2L,0x20B278E2L};
static volatile int32_t *g_1187 = &g_1188[3];
static volatile int32_t ** volatile g_1189 = &g_1187;/* VOLATILE GLOBAL g_1189 */
static int64_t * const *g_1271 = &g_657;
static int64_t * const **g_1270 = &g_1271;
static uint64_t g_1348 = 3UL;
static uint32_t ** const *g_1378 = (void*)0;
static uint32_t ** const ** volatile g_1377 = &g_1378;/* VOLATILE GLOBAL g_1377 */
static volatile int8_t g_1412 = 0xC5L;/* VOLATILE GLOBAL g_1412 */
static int64_t g_1413 = (-1L);
static int32_t ** volatile g_1416 = (void*)0;/* VOLATILE GLOBAL g_1416 */
static int32_t ** volatile g_1417 = &g_1114;/* VOLATILE GLOBAL g_1417 */
static volatile int16_t *** volatile *g_1501 = (void*)0;
static int16_t g_1510 = 0xB0E3L;
static int16_t * const g_1509 = &g_1510;
static int16_t * const *g_1508 = &g_1509;
static int16_t * const ** const g_1507 = &g_1508;
static int16_t * const ** const *g_1506 = &g_1507;
static uint32_t g_1513 = 1UL;
static uint8_t g_1537[1][5] = {{0xAFL,0xAFL,0xAFL,0xAFL,0xAFL}};
static int32_t **** volatile g_1710[2][5][10] = {{{&g_339,&g_339,&g_339,(void*)0,&g_339,&g_339,&g_339,(void*)0,&g_339,(void*)0},{&g_339,&g_339,&g_339,(void*)0,&g_339,&g_339,&g_339,(void*)0,&g_339,(void*)0},{&g_339,&g_339,&g_339,(void*)0,&g_339,&g_339,&g_339,(void*)0,&g_339,(void*)0},{&g_339,&g_339,&g_339,(void*)0,&g_339,&g_339,&g_339,(void*)0,&g_339,(void*)0},{&g_339,&g_339,&g_339,(void*)0,&g_339,&g_339,&g_339,(void*)0,&g_339,(void*)0}},{{&g_339,&g_339,&g_339,(void*)0,&g_339,&g_339,&g_339,(void*)0,(void*)0,&g_339},{&g_339,(void*)0,&g_339,&g_339,&g_339,(void*)0,&g_339,&g_339,(void*)0,&g_339},{&g_339,(void*)0,&g_339,&g_339,&g_339,(void*)0,&g_339,&g_339,(void*)0,&g_339},{&g_339,(void*)0,&g_339,&g_339,&g_339,(void*)0,&g_339,&g_339,(void*)0,&g_339},{&g_339,(void*)0,&g_339,&g_339,&g_339,(void*)0,&g_339,&g_339,(void*)0,&g_339}}};
static int32_t **** const  volatile g_1711 = &g_339;/* VOLATILE GLOBAL g_1711 */
static uint16_t g_1779 = 0x233AL;
static int64_t ***g_1799[6] = {&g_880,&g_880,&g_880,&g_880,&g_880,&g_880};
static int64_t ****g_1798 = &g_1799[3];
static uint32_t **g_1888[2][7][9] = {{{&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][9],&g_606[0][9],&g_606[0][2]},{&g_606[0][2],&g_606[0][1],&g_606[1][5],&g_606[0][1],&g_606[0][2],&g_606[1][5],&g_606[0][2],&g_606[0][2],&g_606[1][5]},{&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][9],&g_606[0][9],&g_606[0][2]},{&g_606[0][2],&g_606[0][1],&g_606[1][5],&g_606[0][1],&g_606[0][2],&g_606[1][5],&g_606[0][2],&g_606[0][2],&g_606[1][5]},{&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][9],&g_606[0][9],&g_606[0][2]},{&g_606[0][2],&g_606[0][1],&g_606[1][5],&g_606[0][1],&g_606[0][2],&g_606[1][5],&g_606[0][2],&g_606[0][2],&g_606[1][5]},{&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][9],&g_606[0][9],&g_606[0][2]}},{{&g_606[0][2],&g_606[0][1],&g_606[1][5],&g_606[0][1],&g_606[0][2],&g_606[1][5],&g_606[0][2],&g_606[0][2],&g_606[1][5]},{&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][9],&g_606[0][9],&g_606[0][2]},{&g_606[0][2],&g_606[0][1],&g_606[1][5],&g_606[0][1],&g_606[0][2],&g_606[1][5],&g_606[0][2],&g_606[0][2],&g_606[1][5]},{&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][9],&g_606[0][9],&g_606[0][2]},{&g_606[0][2],&g_606[0][1],&g_606[1][5],&g_606[0][1],&g_606[0][2],&g_606[1][5],&g_606[0][2],&g_606[0][2],&g_606[1][5]},{&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][9],&g_606[0][9],&g_606[0][2]},{&g_606[0][2],&g_606[0][1],&g_606[1][5],&g_606[0][1],&g_606[0][2],&g_606[1][5],&g_606[0][2],&g_606[0][2],&g_606[1][5]}}};
static uint32_t ***g_1887 = &g_1888[0][1][8];
static int32_t g_1927 = 0xF4A708ADL;
static int32_t ** volatile g_1954 = &g_1114;/* VOLATILE GLOBAL g_1954 */
static int32_t g_2047 = 0xF0ABEC18L;
static int32_t g_2056 = 5L;
static int16_t ***g_2065 = &g_164[2];
static int16_t ***g_2067[3] = {&g_164[2],&g_164[2],&g_164[2]};
static volatile uint32_t g_2070[4] = {1UL,1UL,1UL,1UL};
static volatile uint32_t * volatile g_2069[4][5] = {{&g_2070[0],&g_2070[0],&g_2070[0],&g_2070[0],&g_2070[0]},{&g_2070[0],&g_2070[0],&g_2070[0],&g_2070[0],&g_2070[0]},{&g_2070[0],&g_2070[0],&g_2070[0],&g_2070[0],&g_2070[0]},{&g_2070[0],&g_2070[0],&g_2070[0],&g_2070[0],&g_2070[0]}};
static volatile uint32_t * volatile *g_2068[6][2][2] = {{{&g_2069[2][1],&g_2069[2][1]},{&g_2069[2][1],&g_2069[2][1]}},{{&g_2069[2][1],&g_2069[2][1]},{(void*)0,(void*)0}},{{(void*)0,&g_2069[2][1]},{&g_2069[2][1],&g_2069[2][1]}},{{&g_2069[2][1],&g_2069[2][1]},{&g_2069[2][1],&g_2069[2][1]}},{{(void*)0,(void*)0},{(void*)0,&g_2069[2][1]}},{{&g_2069[2][1],&g_2069[2][1]},{&g_2069[2][1],&g_2069[2][1]}}};
static uint16_t *** volatile g_2091 = &g_926;/* VOLATILE GLOBAL g_2091 */
static const int32_t ****g_2098 = (void*)0;
static int64_t * volatile * volatile g_2102 = (void*)0;/* VOLATILE GLOBAL g_2102 */
static int64_t * volatile * volatile *g_2101 = &g_2102;
static int16_t g_2114 = 1L;
static int32_t ** const *g_2142 = &g_43;
static int32_t ** const **g_2141 = &g_2142;
static int32_t ** const ***g_2140 = &g_2141;
static int32_t ** volatile g_2189 = &g_1114;/* VOLATILE GLOBAL g_2189 */
static uint32_t g_2335 = 4294967295UL;
static uint8_t *g_2375 = &g_126[0][0];
static uint8_t ** const g_2374 = &g_2375;
static uint8_t ** const *g_2373 = &g_2374;
static uint8_t ** const **g_2372 = &g_2373;
static volatile int64_t g_2381 = 3L;/* VOLATILE GLOBAL g_2381 */
static uint16_t g_2602 = 0x383EL;
static uint16_t g_2603 = 65534UL;
static const int32_t ** volatile g_2651 = (void*)0;/* VOLATILE GLOBAL g_2651 */
static int16_t g_2871[1] = {0x3EC1L};
static uint16_t g_2898 = 65530UL;
static uint8_t ** const ***g_2899 = &g_2372;
static volatile uint64_t **g_2915 = (void*)0;


/* --- FORWARD DECLARATIONS --- */
static uint8_t  func_1(void);
static int32_t * func_4(int8_t  p_5, uint32_t  p_6, int32_t * const  p_7);
static uint32_t  func_8(uint32_t  p_9, int32_t  p_10, int8_t  p_11, uint64_t  p_12, int32_t * p_13);
static uint32_t  func_14(const int32_t * p_15);
static uint64_t  func_25(int32_t ** const  p_26, uint16_t  p_27, int32_t  p_28);
static int32_t  func_29(uint32_t  p_30);
static uint16_t  func_37(int64_t  p_38, int32_t * p_39, int32_t * const * p_40, int32_t ** p_41);
static int32_t * func_45(int32_t ** p_46, int32_t  p_47, int16_t  p_48, uint32_t  p_49, int16_t  p_50);
static int32_t ** func_51(const uint8_t  p_52, uint32_t  p_53, int32_t ** p_54, uint64_t  p_55);
static uint64_t  func_58(uint8_t  p_59, int64_t  p_60, uint16_t  p_61, int32_t ** p_62);


/* --- FUNCTIONS --- */
/* ------------------------------------------ */
/* 
 * reads : g_3 g_1348 g_689 g_1051 g_1052 g_129 g_130 g_2899 g_2372 g_2373 g_2374 g_2140 g_2141 g_2142 g_43 g_970 g_971 g_615 g_1270 g_1271 g_657 g_2915 g_927 g_124 g_1506 g_1507 g_1508 g_1509 g_1510 g_185 g_259
 * writes: g_3 g_1348 g_2375 g_44 g_236 g_1510 g_185
 */
static uint8_t  func_1(void)
{ /* block id: 0 */
    int32_t l_2[8] = {0x1E559696L,0x1E559696L,0x1E559696L,0x1E559696L,0x1E559696L,0x1E559696L,0x1E559696L,0x1E559696L};
    int32_t *l_2557 = &g_689[0];
    uint8_t *****l_2560 = &g_1051;
    int64_t l_2622 = 0x7EDA3FD96416AAD6LL;
    uint64_t l_2639 = 0x0B45DA27BD1524B6LL;
    uint32_t l_2642 = 0x6E2CB0DAL;
    int8_t *l_2672 = &g_185;
    int8_t **l_2671 = &l_2672;
    int32_t l_2708 = 0x82A0E463L;
    int32_t l_2763 = 0xE6775477L;
    int32_t l_2773 = 1L;
    int32_t l_2791 = 0L;
    uint32_t l_2843 = 0x2CF2F56FL;
    uint64_t l_2846 = 0xA4C4F0FCCEF956C6LL;
    uint16_t l_2901 = 0x6E63L;
    int i;
    for (g_3 = 7; (g_3 >= 0); g_3 -= 1)
    { /* block id: 3 */
        int32_t l_1529 = 4L;
        uint8_t *l_1536 = &g_1537[0][1];
        int32_t *l_1539 = &l_2[g_3];
        int32_t **l_1538 = &l_1539;
        const uint8_t *****l_2561 = &g_278;
        int8_t l_2562 = 7L;
        uint64_t *l_2569 = &g_174;
        int8_t *l_2570[4];
        uint16_t * const l_2601[10][8] = {{&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603},{&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603},{&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603},{&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603},{&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603},{&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603},{&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603},{&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603},{&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603},{&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603,&g_2603}};
        uint16_t * const *l_2600[6][2][6] = {{{&l_2601[6][1],&l_2601[5][7],&l_2601[5][7],(void*)0,&l_2601[5][7],(void*)0},{&l_2601[6][1],&l_2601[0][7],&l_2601[6][1],(void*)0,&l_2601[0][7],&l_2601[5][7]}},{{&l_2601[6][1],(void*)0,(void*)0,(void*)0,(void*)0,&l_2601[6][1]},{&l_2601[6][1],&l_2601[5][7],&l_2601[5][7],(void*)0,&l_2601[5][7],(void*)0}},{{&l_2601[6][1],&l_2601[0][7],&l_2601[6][1],(void*)0,&l_2601[0][7],&l_2601[5][7]},{&l_2601[6][1],(void*)0,(void*)0,(void*)0,(void*)0,&l_2601[6][1]}},{{&l_2601[6][1],&l_2601[5][7],&l_2601[5][7],(void*)0,&l_2601[5][7],(void*)0},{&l_2601[6][1],&l_2601[0][7],&l_2601[6][1],(void*)0,&l_2601[0][7],&l_2601[5][7]}},{{&l_2601[6][1],(void*)0,(void*)0,(void*)0,(void*)0,&l_2601[6][1]},{&l_2601[6][1],&l_2601[5][7],&l_2601[5][7],(void*)0,&l_2601[5][7],(void*)0}},{{&l_2601[6][1],&l_2601[0][7],&l_2601[6][1],(void*)0,&l_2601[0][7],&l_2601[5][7]},{&l_2601[6][1],(void*)0,(void*)0,(void*)0,(void*)0,(void*)0}}};
        uint32_t l_2624 = 0UL;
        uint16_t l_2652 = 5UL;
        uint32_t l_2699 = 4294967294UL;
        int32_t l_2700 = (-1L);
        int32_t l_2704 = 0L;
        int32_t l_2706 = 1L;
        int32_t l_2707 = 0xF8EA3BA0L;
        int32_t l_2709 = (-1L);
        uint32_t *l_2735 = (void*)0;
        uint32_t **l_2734 = &l_2735;
        int32_t l_2803[9][8][3] = {{{0xE524313FL,(-2L),0xE524313FL},{0xA8505505L,0xE6614602L,0x6078B135L},{6L,0x69F001A1L,9L},{(-5L),0xC0F1153DL,(-9L)},{0x321356F6L,0x23C93C17L,0x9623E7BDL},{(-5L),(-10L),0xE524313FL},{6L,0xFFA786DEL,0xFCC79BE4L},{0xA8505505L,0x69F001A1L,8L}},{{0xE524313FL,(-1L),8L},{0x321356F6L,0L,0xFCC79BE4L},{(-1L),0L,0xE524313FL},{0xB271EB0CL,0L,0x9623E7BDL},{(-3L),0x69F001A1L,(-9L)},{0xD7AFA38CL,0L,9L},{0x321356F6L,0L,0x6078B135L},{0L,0L,0xE524313FL}},{{(-3L),(-1L),0x4C5C47B6L},{(-3L),0x69F001A1L,0x321356F6L},{0L,0xFFA786DEL,0x37DC7480L},{0x321356F6L,(-10L),6L},{0xD7AFA38CL,0x23C93C17L,0xE524313FL},{(-3L),0xC0F1153DL,6L},{0xB271EB0CL,0x69F001A1L,0x37DC7480L},{(-1L),0xE6614602L,0x321356F6L}},{{0x321356F6L,(-2L),0x4C5C47B6L},{0xE524313FL,(-2L),0xE524313FL},{0xA8505505L,0xE6614602L,0x6078B135L},{6L,0x69F001A1L,9L},{(-5L),0xC0F1153DL,(-9L)},{0x321356F6L,0x23C93C17L,0x9623E7BDL},{(-5L),(-10L),0xE524313FL},{6L,0xFFA786DEL,0xFCC79BE4L}},{{0xA8505505L,0x69F001A1L,8L},{0xE524313FL,(-1L),8L},{0x321356F6L,0L,0xFCC79BE4L},{(-1L),0L,0xE524313FL},{0xB271EB0CL,0L,0x9623E7BDL},{(-3L),0x69F001A1L,(-9L)},{0xD7AFA38CL,0L,9L},{0x321356F6L,0L,0x6078B135L}},{{0L,0L,0xE524313FL},{(-3L),(-1L),0x4C5C47B6L},{(-3L),0x69F001A1L,0x321356F6L},{0L,0xFFA786DEL,0x37DC7480L},{0x321356F6L,(-10L),6L},{0xD7AFA38CL,0x23C93C17L,0xE524313FL},{(-3L),0xC0F1153DL,6L},{0xB271EB0CL,0x69F001A1L,0x37DC7480L}},{{(-1L),0xE6614602L,0x321356F6L},{0x321356F6L,(-2L),0x4C5C47B6L},{0xE524313FL,(-2L),0xE524313FL},{0xA8505505L,0xE6614602L,0x6078B135L},{6L,0x69F001A1L,9L},{(-5L),0xC0F1153DL,(-9L)},{0x321356F6L,0x23C93C17L,0x9623E7BDL},{(-5L),(-10L),0xE524313FL}},{{6L,0xFFA786DEL,0xFCC79BE4L},{0xA8505505L,0x69F001A1L,8L},{0xE524313FL,(-1L),8L},{0x321356F6L,0L,0xFCC79BE4L},{(-1L),0L,0xE524313FL},{0xB271EB0CL,0L,0x9623E7BDL},{(-3L),0x321356F6L,0L},{0x7D69CA24L,(-5L),0x9F34C849L}},{{0x8AB15005L,6L,0xEEC862D6L},{(-4L),0xA8505505L,1L},{0L,0xE524313FL,0x6AB972FCL},{0L,0x321356F6L,0x8AB15005L},{(-4L),(-1L),2L},{0x8AB15005L,0xB271EB0CL,(-1L)},{0x7D69CA24L,(-3L),1L},{0xD3352C83L,0xD7AFA38CL,(-1L)}}};
        uint64_t l_2814[9] = {0x690120C8CA76D067LL,18446744073709551609UL,0x690120C8CA76D067LL,0x690120C8CA76D067LL,18446744073709551609UL,0x690120C8CA76D067LL,0x690120C8CA76D067LL,18446744073709551609UL,0x690120C8CA76D067LL};
        int32_t *l_2834 = (void*)0;
        uint32_t l_2837 = 0xB892E46AL;
        uint16_t l_2878 = 0x9EEDL;
        int i, j, k;
        for (i = 0; i < 4; i++)
            l_2570[i] = &l_2562;
    }
    for (g_1348 = 22; (g_1348 == 36); g_1348 = safe_add_func_uint8_t_u_u(g_1348, 1))
    { /* block id: 1239 */
        return (*l_2557);
    }
    if ((*l_2557))
    { /* block id: 1242 */
        (****g_2140) = (((****l_2560) != ((****g_2899) = (****l_2560))) , (void*)0);
    }
    else
    { /* block id: 1245 */
        int16_t ***l_2906 = &g_164[1];
        int16_t ****l_2907 = &l_2906;
        int32_t l_2913 = 0x08F15A7AL;
        const int16_t l_2914 = (-10L);
        (***g_2141) = ((((((*l_2907) = l_2906) == (((safe_add_func_int8_t_s_s((**g_970), (safe_add_func_uint16_t_u_u((((*l_2557) != (((8UL & (((~((***g_1270) = l_2913)) > l_2914) >= ((((g_2915 == ((((*g_927) | (((**l_2671) |= (safe_div_func_int16_t_s_s(((****g_1506) |= l_2914), l_2914))) == g_259)) & 0L) , (void*)0)) , (void*)0) != (void*)0) , (*l_2557)))) != l_2914) >= 8L)) , 65531UL), (-5L))))) , l_2913) , (void*)0)) , 0x5686267AL) != (-1L)) , (void*)0);
    }
    return (*l_2557);
}


/* ------------------------------------------ */
/* 
 * reads : g_1954 g_1051 g_755 g_935 g_1348 g_1052 g_129 g_130 g_126 g_1537 g_820 g_821 g_1507 g_1508 g_1509 g_1510 g_142 g_1187 g_592 g_1887 g_1888 g_606 g_172 g_502 g_1417 g_1114 g_1513 g_124 g_753 g_659 g_970 g_971 g_2047 g_615 g_1188 g_2091 g_2098 g_1798 g_1799 g_2101 g_272 g_71 g_174 g_340 g_1189 g_164 g_339 g_2189 g_43 g_1927 g_3 g_208 g_209 g_2142 g_2114 g_1779 g_44 g_2140 g_2141 g_733 g_185 g_605 g_2335 g_2375 g_2373 g_2374 g_880
 * writes: g_1114 g_1051 g_185 g_126 g_1537 g_1188 g_592 g_1513 g_124 g_172 g_502 g_926 g_2098 g_571 g_1510 g_2140 g_1779 g_174 g_340 g_1927 g_67 g_43 g_44 g_2114 g_659 g_2372 g_518
 */
static int32_t * func_4(int8_t  p_5, uint32_t  p_6, int32_t * const  p_7)
{ /* block id: 838 */
    uint8_t *****l_1953 = &g_1051;
    uint8_t ****l_1955 = &g_1052;
    const int32_t l_1963 = 1L;
    int32_t *l_1980[2];
    uint64_t l_2071 = 1UL;
    int64_t **l_2082 = &g_657;
    int32_t l_2121[1][3][9] = {{{1L,0x4D0C4E7BL,1L,1L,1L,1L,0x4D0C4E7BL,1L,1L},{(-1L),(-1L),(-1L),(-1L),0xCE607AA3L,(-1L),(-1L),(-1L),(-1L)},{4L,1L,0xA73DB966L,1L,4L,4L,1L,0xA73DB966L,1L}}};
    int16_t l_2127 = 0xCEA6L;
    int32_t ** const **l_2139 = (void*)0;
    int32_t ** const ***l_2138 = &l_2139;
    const uint8_t l_2147 = 0UL;
    int8_t l_2148 = 7L;
    uint8_t ****l_2149 = &g_1052;
    int64_t l_2181[6][5][7] = {{{3L,0xE7CDB593EEA98BEDLL,(-8L),0xD64935CE28EE7304LL,(-1L),0xA9F2A1DA439C563FLL,0x6E4F73C33D7EB528LL},{(-1L),1L,9L,0L,0x1D7F3F0149262B2ELL,(-1L),0L},{9L,0xC3F8D598BD3EF6B0LL,0L,(-9L),0xA9F2A1DA439C563FLL,(-1L),(-9L)},{0x4517E693B5836246LL,(-1L),0x86DEA7FD254A3983LL,0x9A349F55A302F572LL,0x4A02E07DDE239469LL,(-1L),1L},{(-1L),1L,0x56A050952D77BF1ALL,0x04C1A674AC1C5C8CLL,0x684D2EDDE17DC865LL,0x3270A914A2D33BF2LL,6L}},{{(-8L),0xA496B80B49F422ABLL,0x9A349F55A302F572LL,(-3L),8L,(-5L),(-1L)},{0x2B8E9589DF7D9FCFLL,(-8L),0x6472901B980BFD99LL,1L,0x14CACD52B74247C7LL,1L,9L},{0x2B8E9589DF7D9FCFLL,0x1D7F3F0149262B2ELL,1L,0xA496B80B49F422ABLL,1L,0xE2AADA113BF824D7LL,(-1L)},{(-8L),0x303D499DD1631484LL,1L,(-1L),(-1L),0x9A349F55A302F572LL,0x14CACD52B74247C7LL},{(-1L),0xE2AADA113BF824D7LL,0xE7CDB593EEA98BEDLL,1L,0xF154BE8CB13D1016LL,0L,1L}},{{0x4517E693B5836246LL,(-1L),0L,3L,3L,0L,(-1L)},{9L,0xE9E439A41DDD7ABCLL,0L,3L,0xA496B80B49F422ABLL,0x6472901B980BFD99LL,0x35189738134A5EDCLL},{(-1L),0L,0x71C6C0A21310DB20LL,9L,1L,0x6D9A5B3F403029CFLL,0L},{3L,0x6D9A5B3F403029CFLL,(-9L),3L,0x6E4F73C33D7EB528LL,0x4517E693B5836246LL,1L},{0x7EB4237A65524C44LL,0L,0xF3AC0BE67FFA26F5LL,3L,(-9L),0xA496B80B49F422ABLL,0xE7CDB593EEA98BEDLL}},{{1L,0x684D2EDDE17DC865LL,(-1L),1L,0L,0x86DEA7FD254A3983LL,4L},{4L,0x2B8E9589DF7D9FCFLL,(-10L),(-1L),0xFEF0B1004FCB9900LL,(-1L),0x7EB4237A65524C44LL},{(-1L),(-1L),0x7EB4237A65524C44LL,0xA496B80B49F422ABLL,0x5C4EB857028204B6LL,0x1FBDEDF0F99EDA3FLL,(-1L)},{0x2B8E9589DF7D9FCFLL,0x684D2EDDE17DC865LL,0L,(-1L),0xF6DC615BED9D8033LL,1L,(-1L)},{0xF3AC0BE67FFA26F5LL,(-1L),0xE7CDB593EEA98BEDLL,9L,(-1L),8L,4L}},{{8L,0x7EB4237A65524C44LL,(-1L),1L,(-1L),(-1L),0x70F4D1F67D9CA93ALL},{1L,(-1L),8L,6L,(-8L),0x4517E693B5836246LL,0x7F0791DB98960B31LL},{(-1L),(-5L),(-9L),(-1L),(-9L),(-5L),(-1L)},{(-1L),0x303D499DD1631484LL,3L,(-1L),4L,0x5C4EB857028204B6LL,0x255C6AA62DF413C4LL},{(-5L),(-1L),0x684D2EDDE17DC865LL,8L,(-1L),1L,1L}},{{(-1L),(-3L),3L,0x56A050952D77BF1ALL,9L,1L,0x14CACD52B74247C7LL},{0x6472901B980BFD99LL,0xE7CDB593EEA98BEDLL,(-9L),0x04C1A674AC1C5C8CLL,(-10L),0x255C6AA62DF413C4LL,0L},{3L,1L,8L,1L,0x684D2EDDE17DC865LL,0xA9F2A1DA439C563FLL,0x4517E693B5836246LL},{(-1L),(-1L),(-1L),(-5L),0x35189738134A5EDCLL,(-1L),0xFEF0B1004FCB9900LL},{3L,1L,0xE7CDB593EEA98BEDLL,0xA9F2A1DA439C563FLL,6L,0xF154BE8CB13D1016LL,(-1L)}}};
    uint8_t l_2238 = 0x45L;
    int32_t l_2275 = 9L;
    uint64_t l_2284 = 6UL;
    int64_t l_2309[8] = {(-1L),1L,(-1L),(-1L),1L,(-1L),(-1L),1L};
    int32_t l_2322 = 0L;
    int32_t ****l_2324 = (void*)0;
    uint8_t ** const **l_2370 = (void*)0;
    int64_t *****l_2495 = &g_1798;
    uint32_t ***l_2555 = &g_1888[0][1][8];
    int32_t *l_2556 = (void*)0;
    int i, j, k;
    for (i = 0; i < 2; i++)
        l_1980[i] = &g_1927;
    (*p_7) = ((void*)0 == l_1953);
    (*g_1954) = p_7;
    if ((((*l_1953) = (*l_1953)) != l_1955))
    { /* block id: 842 */
        uint32_t l_1958 = 0xAD19DF10L;
        int32_t l_1971 = 1L;
        int8_t *l_1978[7] = {&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185};
        int64_t ****l_1979[4] = {(void*)0,(void*)0,(void*)0,(void*)0};
        uint32_t l_2000 = 6UL;
        uint64_t l_2002 = 1UL;
        int32_t * const **l_2014 = (void*)0;
        int32_t * const *** const l_2013 = &l_2014;
        int32_t * const *** const *l_2012 = &l_2013;
        int32_t l_2026 = 1L;
        int16_t ***l_2066 = &g_164[1];
        int32_t l_2109 = 1L;
        int32_t l_2110 = (-9L);
        int32_t l_2111 = 7L;
        int32_t l_2112 = 0x1769111AL;
        int32_t l_2113 = 4L;
        int32_t l_2115 = 0L;
        int32_t l_2116 = (-1L);
        int32_t l_2117 = 0xFF76FB80L;
        int32_t l_2118 = 0xD6AB05A2L;
        int32_t l_2120 = 0xD4C208E3L;
        int32_t l_2122 = (-1L);
        int32_t l_2124 = 1L;
        int32_t l_2125 = 0x027C5D1DL;
        int32_t l_2126[4][1] = {{(-5L)},{(-1L)},{(-5L)},{(-1L)}};
        uint64_t l_2128 = 0UL;
        uint16_t *l_2146 = &g_1779;
        uint8_t ****l_2150 = &g_1052;
        uint8_t ****l_2151 = &g_1052;
        uint8_t *****l_2152 = (void*)0;
        uint8_t *****l_2153[5];
        int8_t l_2209[3];
        uint32_t l_2263[9];
        uint16_t ***l_2288 = &g_926;
        uint16_t ****l_2287 = &l_2288;
        int32_t ***l_2304 = &g_43;
        uint64_t l_2342 = 5UL;
        int i, j;
        for (i = 0; i < 5; i++)
            l_2153[i] = (void*)0;
        for (i = 0; i < 3; i++)
            l_2209[i] = 1L;
        for (i = 0; i < 9; i++)
            l_2263[i] = 1UL;
        if ((safe_div_func_int32_t_s_s(l_1958, (safe_rshift_func_uint8_t_u_s((g_755 != ((safe_add_func_uint64_t_u_u(((l_1963 == ((((safe_lshift_func_uint64_t_u_u((safe_unary_minus_func_uint16_t_u(((p_6 , (safe_mul_func_uint8_t_u_u(((g_935[9] < (safe_mod_func_uint64_t_u_u((l_1963 >= ((l_1971 = l_1963) , ((safe_mul_func_int64_t_s_s(((safe_mul_func_uint32_t_u_u((((g_185 = (0L != (l_1971 = (safe_mul_func_int64_t_s_s(1L, 0x43E21F723BC07FEFLL))))) , l_1979[2]) != (void*)0), l_1963)) ^ g_1348), 1UL)) || (*p_7)))), l_1963))) > 9L), 9UL))) || l_1963))), 8)) , l_1971) , 4294967295UL) ^ (*p_7))) > p_5), 0L)) , (void*)0)), 5)))))
        { /* block id: 846 */
            return l_1980[1];
        }
        else
        { /* block id: 848 */
            uint8_t *l_1992 = &g_1537[0][1];
            int32_t * const l_1995[10][3][8] = {{{&g_689[0],&g_3,&g_689[0],&g_3,&l_1971,&g_71,&g_71,&l_1971},{(void*)0,&g_71,&g_689[0],&l_1971,&g_689[0],&g_71,&g_689[0],&g_1927},{&g_689[0],&l_1971,&g_3,(void*)0,&g_1927,(void*)0,&g_689[0],(void*)0}},{{&l_1971,&g_1927,(void*)0,&g_1927,&l_1971,&g_689[0],&l_1971,&l_1971},{(void*)0,&g_71,&g_3,&g_689[0],&g_3,(void*)0,(void*)0,&g_1927},{&g_3,&g_1927,&g_3,&l_1971,&g_71,&g_71,&l_1971,&g_1927}},{{&g_3,&g_1927,(void*)0,&l_1971,&g_689[0],&g_3,&g_689[0],&l_1971},{&l_1971,&g_3,&g_3,&g_3,&g_689[0],&g_71,&g_689[0],(void*)0},{&g_3,&g_71,&g_689[0],&g_689[0],&g_689[0],&g_689[0],&g_71,&g_3}},{{&g_3,&g_71,&g_689[0],&g_71,&g_689[0],&g_1927,(void*)0,&g_689[0]},{&g_689[0],&g_689[0],&g_71,&g_3,&g_71,&g_689[0],(void*)0,&g_3},{&g_1927,(void*)0,&l_1971,&l_1971,&g_689[0],&g_3,&l_1971,&g_689[0]}},{{&g_3,&g_71,(void*)0,&g_1927,&g_689[0],(void*)0,&g_3,&g_1927},{(void*)0,&g_3,&l_1971,&g_689[0],&g_689[0],&g_1927,&g_689[0],&g_689[0]},{&g_71,(void*)0,&g_71,&l_1971,&l_1971,&g_689[0],&g_3,(void*)0}},{{(void*)0,&g_3,&l_1971,&g_689[0],&g_3,&l_1971,&l_1971,&g_71},{(void*)0,&g_1927,&g_689[0],(void*)0,&l_1971,&g_1927,&g_689[0],(void*)0},{&g_71,&g_71,&g_71,&g_689[0],&g_689[0],&g_689[0],&g_689[0],&g_1927}},{{(void*)0,(void*)0,&g_689[0],&l_1971,&g_689[0],&g_71,&g_71,&g_71},{&g_3,&g_689[0],&g_689[0],&g_689[0],&g_689[0],&g_3,&g_3,&g_3},{&g_1927,&g_689[0],&g_71,(void*)0,&g_71,(void*)0,&g_1927,&g_689[0]}},{{&g_1927,&g_71,&g_3,(void*)0,&g_71,(void*)0,&g_3,&g_3},{&g_3,&g_71,&g_689[0],&g_689[0],&g_689[0],&g_3,&g_689[0],&g_71},{&l_1971,&g_1927,&g_71,&l_1971,&l_1971,&g_689[0],&l_1971,&g_1927}},{{&g_689[0],(void*)0,(void*)0,&g_689[0],&g_1927,&g_689[0],(void*)0,(void*)0},{&g_689[0],(void*)0,&g_3,(void*)0,&g_1927,&l_1971,(void*)0,&g_71},{&g_3,&g_3,&g_1927,&g_689[0],&g_689[0],&l_1971,(void*)0,(void*)0}},{{&g_689[0],&g_689[0],&g_3,&l_1971,&l_1971,&l_1971,(void*)0,&g_689[0]},{&l_1971,&l_1971,(void*)0,&g_689[0],&g_3,(void*)0,&l_1971,&g_1927},{&g_3,&g_1927,&g_71,&g_1927,&g_689[0],&g_689[0],&g_689[0],&g_689[0]}}};
            int64_t *****l_2001 = &l_1979[3];
            int i, j, k;
            (*g_1187) = ((safe_mul_func_int64_t_s_s((((-3L) != ((((p_6 || (&l_1979[2] != ((l_1971 = ((!((l_2000 = (safe_mul_func_uint32_t_u_u(p_5, ((safe_lshift_func_uint8_t_u_u(((****g_1051)++), (--(*l_1992)))) > (((*p_7) = ((65535UL ^ 0x577DL) , (l_1995[7][0][2] != p_7))) < ((safe_div_func_int16_t_s_s((safe_add_func_uint64_t_u_u(l_1971, (*g_820))), (***g_1507))) || p_6)))))) >= l_1958)) == 0xE4BF873EBD07307ALL)) , l_2001))) , l_1971) || p_5) == (-5L))) >= g_142), 0x48BE034E8750D4F7LL)) , 0xFE15D744L);
            (*p_7) = l_2002;
            (*p_7) = (*p_7);
        }
        for (g_592 = 0; (g_592 < 3); g_592 = safe_add_func_uint16_t_u_u(g_592, 7))
        { /* block id: 860 */
            int32_t ****l_2016[1][6][5] = {{{&g_339,&g_339,&g_339,&g_339,&g_339},{&g_339,&g_339,&g_339,&g_339,&g_339},{&g_339,&g_339,&g_339,&g_339,&g_339},{&g_339,&g_339,&g_339,&g_339,&g_339},{&g_339,&g_339,&g_339,&g_339,&g_339},{&g_339,&g_339,&g_339,&g_339,&g_339}}};
            int32_t *****l_2015 = &l_2016[0][1][0];
            int64_t l_2017 = 1L;
            uint32_t *l_2023 = (void*)0;
            uint32_t *l_2024 = (void*)0;
            uint32_t *l_2025[4][1][9] = {{{(void*)0,&g_502,(void*)0,&g_502,(void*)0,&l_1958,&g_1513,&l_1958,(void*)0}},{{&l_1958,(void*)0,(void*)0,&l_1958,&g_1513,&l_1958,(void*)0,(void*)0,&l_1958}},{{&g_502,(void*)0,&g_502,(void*)0,&g_502,&g_502,(void*)0,&g_502,(void*)0}},{{(void*)0,&g_1513,&g_502,&g_502,&g_1513,(void*)0,&g_1513,&g_502,&g_502}}};
            int i, j, k;
            if (((*p_7) = (((+(safe_add_func_uint32_t_u_u((safe_div_func_int32_t_s_s(0x9D4E1B37L, ((((safe_mod_func_uint8_t_u_u(p_5, (((l_2012 = (void*)0) == l_2015) && (l_2017 = ((***g_1887) < p_5))))) <= (safe_mod_func_uint32_t_u_u((l_2026 = (l_1971 &= (p_5 > (~(((((((safe_mul_func_int32_t_s_s(((p_6 >= (**g_1417)) & 249UL), p_6)) == (*p_7)) & 0UL) >= p_6) < 5L) != p_5) , 0x6728L))))), (*p_7)))) <= (*p_7)) , 0xF22FFAEDL))), 0xE501EB83L))) <= p_6) != p_6)))
            { /* block id: 866 */
                uint32_t l_2048[7] = {0x7CAACA83L,0x7CAACA83L,0x7CAACA83L,0x7CAACA83L,0x7CAACA83L,0x7CAACA83L,0x7CAACA83L};
                int i;
                (*g_1954) = (*g_1417);
                for (g_1513 = 0; (g_1513 > 31); ++g_1513)
                { /* block id: 870 */
                    uint16_t l_2036 = 4UL;
                    uint16_t **l_2041 = &g_927;
                    int32_t *l_2051 = &l_2026;
                    for (g_124 = 0; (g_124 >= 44); ++g_124)
                    { /* block id: 873 */
                        int64_t *l_2046 = &g_236;
                        int16_t ***l_2049[8] = {(void*)0,&g_164[1],(void*)0,&g_164[1],(void*)0,&g_164[1],(void*)0,&g_164[1]};
                        int32_t l_2050 = 0xEDA3817EL;
                        int i;
                        (*g_1187) = ((((((~((((p_5 == (+(safe_unary_minus_func_int64_t_s(((((((safe_sub_func_int64_t_s_s(((((l_2036 >= (safe_sub_func_uint16_t_u_u((safe_rshift_func_int64_t_s_u((p_6 < (g_935[0] >= (((void*)0 == l_2041) && (2L < (safe_mul_func_int8_t_s_s(((safe_mod_func_int32_t_s_s(((**l_1955) != (((l_2046 = ((6L ^ l_2036) , &l_2017)) == (void*)0) , (**g_1051))), (*g_1114))) != g_753), 1L)))))), g_659)), 65535UL))) , l_1978[6]) != (*g_970)) == g_2047), l_2048[0])) & p_5) == p_5) , 0x14L) && (**g_970)) , p_6))))) <= 0x215EBB1DL) , (void*)0) != (void*)0)) && 65531UL) , 4L) , (void*)0) == l_2049[3]) , l_2050);
                        if (l_2050)
                            continue;
                        (*g_1187) ^= ((0UL & ((***g_1887) = l_2050)) ^ p_5);
                        return l_1980[1];
                    }
                    return l_1980[1];
                }
            }
            else
            { /* block id: 883 */
                uint8_t l_2061 = 0UL;
                int16_t ***l_2062[10];
                int32_t l_2073 = 0xEF398C3CL;
                uint8_t **** const *l_2094 = &l_1955;
                const int32_t *****l_2099 = (void*)0;
                const int32_t *****l_2100 = &g_2098;
                int32_t l_2105 = 1L;
                int32_t l_2108[7][4] = {{(-1L),0x803300D5L,0x803300D5L,(-1L)},{0x803300D5L,(-1L),0x803300D5L,0x803300D5L},{(-1L),(-1L),(-5L),(-1L)},{(-1L),0x803300D5L,0x803300D5L,(-1L)},{0x803300D5L,(-1L),0x803300D5L,0x803300D5L},{(-1L),(-1L),(-5L),(-1L)},{(-1L),0x803300D5L,0x803300D5L,(-1L)}};
                int32_t l_2119 = 1L;
                int32_t l_2123 = (-5L);
                int32_t *l_2136 = &l_2112;
                int i, j;
                for (i = 0; i < 10; i++)
                    l_2062[i] = &g_164[0];
                for (g_1513 = 0; (g_1513 < 56); ++g_1513)
                { /* block id: 886 */
                    int32_t l_2072 = 0x9095C79BL;
                    int32_t l_2074 = 0x59FAD6FFL;
                    uint16_t l_2075 = 0x7ABFL;
                    int16_t *l_2086 = &g_1510;
                    int16_t **l_2085[3];
                    uint8_t *****l_2095[5] = {&g_1051,&g_1051,&g_1051,&g_1051,&g_1051};
                    int i;
                    for (i = 0; i < 3; i++)
                        l_2085[i] = &l_2086;
                    if ((((safe_unary_minus_func_int8_t_s(0x01L)) ^ p_6) <= 0x96841C4921319A23LL))
                    { /* block id: 887 */
                        int32_t **l_2055 = &g_1114;
                        int16_t ****l_2063 = (void*)0;
                        int16_t ****l_2064[6];
                        int i;
                        for (i = 0; i < 6; i++)
                            l_2064[i] = &l_2062[5];
                        (*l_2055) = (l_1980[1] = (*l_2055));
                        --l_2075;
                    }
                    else
                    { /* block id: 893 */
                        uint32_t * const *l_2090 = &l_2024;
                        uint32_t * const **l_2089[4][5] = {{&l_2090,&l_2090,&l_2090,&l_2090,(void*)0},{&l_2090,&l_2090,&l_2090,&l_2090,(void*)0},{&l_2090,&l_2090,&l_2090,&l_2090,(void*)0},{&l_2090,&l_2090,&l_2090,&l_2090,(void*)0}};
                        int i, j;
                        (*p_7) = (safe_mul_func_uint32_t_u_u(((safe_mul_func_int8_t_s_s(((void*)0 != l_2082), (p_5 = p_5))) || (((*****l_1953) ^= (((p_6 <= (safe_div_func_uint16_t_u_u(((l_2085[1] != (void*)0) | p_5), (safe_mul_func_int16_t_s_s(((&g_1888[0][4][6] != l_2089[1][0]) || p_5), p_6))))) < p_6) & 0xD8B47EC3L)) ^ (-1L))), p_6));
                        (*g_2091) = &g_927;
                    }
                    (*g_1187) = (safe_lshift_func_uint16_t_u_s((((p_5 && (*p_7)) | (l_2094 != l_2095[4])) & p_6), 2));
                    if ((*p_7))
                        break;
                    return l_1980[1];
                }
                (*p_7) &= (((&l_2014 == ((*l_2100) = ((safe_rshift_func_uint32_t_u_u(l_2073, 12)) , g_2098))) , (*g_1798)) != g_2101);
                for (g_502 = 0; (g_502 <= 3); g_502 += 1)
                { /* block id: 907 */
                    int32_t l_2103 = 6L;
                    int32_t l_2104 = 0x01933F1FL;
                    int32_t l_2106 = 0L;
                    int32_t l_2107[4];
                    int i;
                    for (i = 0; i < 4; i++)
                        l_2107[i] = 0xCB635D8DL;
                    (*g_1187) = (**g_1417);
                    ++l_2128;
                    for (g_571 = 0; (g_571 != (-13)); --g_571)
                    { /* block id: 912 */
                        uint32_t l_2133 = 0xEC2E7411L;
                        int32_t *l_2137[6];
                        int i;
                        for (i = 0; i < 6; i++)
                            l_2137[i] = (void*)0;
                        l_2133--;
                        return l_2137[2];
                    }
                    for (g_1510 = 0; (g_1510 >= 0); g_1510 -= 1)
                    { /* block id: 918 */
                        g_2140 = l_2138;
                    }
                }
                (*l_2136) |= (*g_272);
            }
            return (*g_1954);
        }
        if ((((((!(g_185 = (safe_sub_func_uint16_t_u_u(((*l_2146) = p_6), l_2147)))) & (g_174 ^= p_5)) & (l_2148 = 0xC1L)) != (-6L)) || ((p_5 , (g_1051 = (l_2150 = l_2149))) != (l_1955 = l_2151))))
        { /* block id: 933 */
            int32_t *l_2154 = &g_71;
            (*g_1187) = (p_6 < (p_6 <= 0L));
            return l_2154;
        }
        else
        { /* block id: 936 */
            int32_t **l_2170 = &g_1114;
            int16_t *l_2179 = &g_592;
            int16_t **l_2178 = &l_2179;
            uint8_t **l_2208 = &g_130[0];
            uint32_t *l_2212 = &l_2000;
            int16_t ****l_2218[1];
            int32_t l_2242 = 0xF3B6E7CEL;
            int32_t **l_2266 = &g_44;
            int i;
            for (i = 0; i < 1; i++)
                l_2218[i] = &g_2067[2];
            for (g_340 = (-30); (g_340 != (-30)); g_340 = safe_add_func_uint32_t_u_u(g_340, 9))
            { /* block id: 939 */
                int64_t *l_2162 = &g_1413;
                int32_t l_2169 = 0xAF6D44A7L;
                int32_t **l_2172[9][3][5] = {{{&g_1114,&l_1980[0],&l_1980[0],&g_1114,(void*)0},{&g_44,(void*)0,(void*)0,&g_44,(void*)0},{&g_1114,&l_1980[0],&g_1114,(void*)0,&l_1980[1]}},{{&l_1980[1],(void*)0,&l_1980[0],&g_44,(void*)0},{(void*)0,&l_1980[1],&g_44,&g_1114,(void*)0},{&g_214[5],&l_1980[1],&l_1980[1],&l_1980[0],(void*)0}},{{&l_1980[0],&l_1980[1],&g_44,&l_1980[1],&l_1980[0]},{(void*)0,&l_1980[1],(void*)0,&l_1980[1],&l_1980[1]},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0}},{{&g_44,&l_1980[0],(void*)0,&l_1980[1],&l_1980[1]},{&l_1980[1],(void*)0,&l_1980[0],&g_44,&l_1980[0]},{&l_1980[1],&l_1980[0],(void*)0,(void*)0,(void*)0}},{{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,&g_1114,&l_1980[0],&l_1980[0],(void*)0},{&l_1980[0],&g_214[5],(void*)0,(void*)0,&l_1980[1]}},{{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{&l_1980[0],&g_44,(void*)0,&g_1114,(void*)0},{(void*)0,(void*)0,&g_44,&g_214[5],&l_1980[0]}},{{&l_1980[1],&l_1980[0],(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,&l_1980[1],&l_1980[1],(void*)0},{&g_44,(void*)0,&l_1980[0],&l_1980[1],(void*)0}},{{&l_1980[1],(void*)0,&l_1980[0],(void*)0,(void*)0},{&l_1980[1],(void*)0,&g_1114,&g_214[5],&g_44},{&l_1980[0],(void*)0,&g_214[5],&l_1980[1],&l_1980[0]}},{{&g_214[5],&l_1980[0],(void*)0,&l_1980[0],&l_1980[0]},{(void*)0,&g_1114,(void*)0,(void*)0,&g_44},{&g_1114,(void*)0,(void*)0,(void*)0,(void*)0}}};
                int i, j, k;
                for (g_1927 = 0; (g_1927 != 0); g_1927 = safe_add_func_int8_t_s_s(g_1927, 8))
                { /* block id: 942 */
                    const int64_t *l_2163 = &g_753;
                    uint16_t ** const l_2166 = &g_927;
                    int32_t *l_2167[7][1] = {{&g_110},{&g_935[3]},{&g_110},{&g_935[3]},{&g_110},{&g_935[3]},{&g_110}};
                    int32_t l_2168 = (-1L);
                    int32_t **l_2171 = (void*)0;
                    int i, j;
                    (*p_7) = (*p_7);
                    for (g_67 = (-18); (g_67 <= 4); g_67++)
                    { /* block id: 946 */
                        int32_t **l_2161 = &l_1980[0];
                        (*l_2161) = p_7;
                    }
                    if ((**g_1189))
                        break;
                    (*p_7) = ((l_2172[8][2][3] = l_2171) == (void*)0);
                }
                (*l_2170) = (*l_2170);
            }
            if ((safe_rshift_func_int64_t_s_u((*g_820), 1)))
            { /* block id: 956 */
                int32_t *l_2175 = &g_689[0];
                return l_2175;
            }
            else
            { /* block id: 958 */
                uint32_t l_2180[7] = {0UL,0UL,0UL,0UL,0UL,0UL,0UL};
                uint16_t *l_2182 = &g_1779;
                uint16_t **l_2183 = &g_927;
                uint16_t **l_2184 = &l_2146;
                int32_t l_2187[10];
                int8_t l_2188 = 0x9DL;
                int32_t l_2190 = 0x67C57C01L;
                int32_t l_2191[8][10] = {{(-1L),(-9L),(-1L),(-1L),(-9L),(-1L),(-1L),(-9L),(-1L),(-1L)},{(-9L),(-9L),0xA8F59B6DL,(-9L),(-9L),0xA8F59B6DL,(-9L),(-9L),0xA8F59B6DL,(-9L)},{(-9L),(-1L),(-1L),(-9L),(-1L),(-1L),(-9L),(-1L),(-1L),(-9L)},{(-1L),(-9L),(-1L),(-1L),(-9L),(-1L),(-1L),(-9L),(-1L),(-1L)},{(-9L),(-9L),0xA8F59B6DL,(-9L),(-9L),0xA8F59B6DL,(-9L),(-9L),0xA8F59B6DL,(-9L)},{(-9L),(-1L),(-1L),(-9L),(-1L),(-1L),(-9L),(-1L),(-1L),(-9L)},{(-1L),(-9L),(-1L),(-1L),(-9L),(-1L),(-1L),(-9L),(-1L),(-1L)},{(-9L),(-9L),0xA8F59B6DL,(-9L),(-9L),0xA8F59B6DL,(-9L),(-9L),0xA8F59B6DL,(-9L)}};
                int32_t **l_2243[9][5][5] = {{{&g_214[5],&g_44,&g_214[1],&g_1114,&g_214[5]},{&g_214[5],&l_1980[1],(void*)0,&l_1980[1],&g_214[5]},{&g_1114,&l_1980[0],&g_214[5],&l_1980[1],&l_1980[0]},{&g_214[4],&g_214[5],&l_1980[0],&l_1980[0],&g_44},{&g_214[5],(void*)0,&l_1980[1],&g_1114,&g_1114}},{{&g_1114,&g_1114,&g_1114,&g_1114,&g_214[4]},{&l_1980[0],&g_1114,&g_214[5],&g_1114,(void*)0},{&g_1114,&l_1980[1],(void*)0,&g_214[5],&l_1980[0]},{&l_1980[0],(void*)0,&g_214[5],(void*)0,&g_214[5]},{&g_1114,&l_1980[1],&g_1114,&g_44,(void*)0}},{{&g_44,&g_214[5],&l_1980[1],&g_44,(void*)0},{&l_1980[1],&l_1980[1],(void*)0,&g_1114,(void*)0},{&g_44,&g_214[1],&g_44,&g_1114,(void*)0},{&g_1114,&g_214[4],(void*)0,(void*)0,&g_214[4]},{&g_1114,&l_1980[1],&l_1980[0],&g_214[5],&g_1114}},{{&l_1980[1],&g_1114,&g_1114,&l_1980[0],&g_214[5]},{&g_44,&l_1980[0],&g_1114,(void*)0,&g_214[5]},{&l_1980[1],(void*)0,&l_1980[1],&g_214[4],&g_214[5]},{&g_1114,&g_44,&l_1980[1],&g_1114,(void*)0},{&g_1114,&l_1980[1],&l_1980[1],&g_44,&g_214[4]}},{{&g_44,&g_214[5],&g_44,&l_1980[0],&l_1980[1]},{&l_1980[1],&l_1980[1],&g_1114,&g_214[5],&g_44},{&g_214[5],&g_214[6],&g_214[6],&g_214[5],&g_1114},{(void*)0,&g_214[4],&g_1114,&g_214[5],(void*)0},{&g_214[5],&l_1980[0],&g_214[5],&g_214[5],&l_1980[1]}},{{&g_214[4],&l_1980[0],(void*)0,&g_214[5],&g_214[5]},{&g_214[2],&g_214[5],&l_1980[0],&g_214[5],&g_214[5]},{&g_214[5],&g_1114,&l_1980[1],&g_214[5],&g_214[5]},{&g_1114,&g_214[4],&g_214[5],&l_1980[0],&l_1980[1]},{&g_214[5],&g_44,&g_1114,&g_44,(void*)0}},{{(void*)0,&g_1114,&l_1980[0],&g_1114,&l_1980[0]},{&l_1980[1],&l_1980[1],&l_1980[1],&g_214[4],&l_1980[0]},{&g_214[6],&g_1114,(void*)0,(void*)0,&g_1114},{(void*)0,(void*)0,&g_214[4],&l_1980[0],&l_1980[1]},{&l_1980[1],&g_1114,&g_1114,&g_214[5],&g_1114}},{{&l_1980[1],&l_1980[1],&g_214[5],(void*)0,&l_1980[1]},{&g_44,&g_1114,&g_214[5],&g_1114,&l_1980[1]},{(void*)0,&g_44,&l_1980[1],&g_1114,&l_1980[1]},{(void*)0,&g_214[4],&g_214[5],&g_44,(void*)0},{&g_1114,&g_1114,&l_1980[0],&g_1114,&g_1114}},{{&g_214[1],&g_214[5],&g_44,(void*)0,(void*)0},{&l_1980[0],&l_1980[0],&g_214[5],&g_214[4],&g_1114},{&g_214[4],&l_1980[0],(void*)0,&g_214[5],(void*)0},{&g_214[5],&g_214[4],(void*)0,(void*)0,&g_1114},{(void*)0,&g_214[6],(void*)0,&g_44,(void*)0}}};
                int64_t l_2259 = 5L;
                int i, j, k;
                for (i = 0; i < 10; i++)
                    l_2187[i] = 9L;
                l_2181[0][2][4] |= (safe_sub_func_uint16_t_u_u((l_2178 != (((0xEF0BA7F6L > (-1L)) & ((**l_2170) |= (***g_1887))) , (*l_2066))), ((0x54L && 0x7CL) , ((p_5 < ((*l_2179) = (((0x96L || p_5) >= l_2180[4]) || p_6))) != (-1L)))));
                if ((((((void*)0 != &g_971) , l_2182) != ((*l_2184) = l_2182)) , (((l_2180[3] , (safe_mul_func_uint32_t_u_u(0xD78B4BC7L, (((((*g_339) = &l_1980[1]) == (void*)0) , (void*)0) == (void*)0)))) < l_2180[0]) & (**l_2170))))
                { /* block id: 965 */
                    uint32_t l_2192 = 1UL;
                    (*g_2189) = p_7;
                    ++l_2192;
                }
                else
                { /* block id: 968 */
                    int8_t l_2199 = 3L;
                    int32_t *l_2210 = (void*)0;
                    int32_t *l_2211 = &l_2187[3];
                    int16_t ****l_2220[8] = {&l_2066,&l_2066,&l_2066,&l_2066,&l_2066,&l_2066,&l_2066,&l_2066};
                    int32_t l_2237 = (-4L);
                    int32_t l_2262 = (-9L);
                    int i;
                    if ((safe_div_func_uint16_t_u_u(((safe_mul_func_uint64_t_u_u(l_2199, ((safe_div_func_uint16_t_u_u(p_6, (l_2191[0][5] = (safe_div_func_uint8_t_u_u(((((*g_971) | p_5) || ((((*l_2211) = (safe_sub_func_int16_t_s_s(p_5, (((safe_add_func_int8_t_s_s((g_185 = (l_2208 != (**l_1955))), ((((***g_1887) |= ((**l_2170) && p_6)) < (**g_43)) < (-1L)))) ^ p_5) <= l_2209[1])))) , &p_6) != l_2212)) & p_6), 1UL))))) <= 0x97D1L))) && 0x9BB31404F5C4397BLL), 65528UL)))
                    { /* block id: 973 */
                        int16_t *****l_2219 = &l_2218[0];
                        int32_t l_2239 = 0x1C4D550AL;
                        const int32_t l_2240 = 0xBF18DDA2L;
                        int32_t l_2241 = 0x55F256B7L;
                        (**g_339) = (void*)0;
                        l_2242 |= ((**l_2170) = (p_6 , (((((*g_1509) = (**l_2170)) ^ (l_2187[5] >= (l_2241 = (safe_mul_func_uint8_t_u_u((+((~(+(((*l_2219) = l_2218[0]) == (l_2220[3] = &g_2065)))) || ((****l_2151) = (((l_2191[0][5] = ((l_2110 &= ((l_2239 |= (safe_lshift_func_uint8_t_u_u(((safe_mul_func_int8_t_s_s((safe_sub_func_int16_t_s_s(((safe_sub_func_uint8_t_u_u((safe_mul_func_uint8_t_u_u(((safe_mod_func_int64_t_s_s((l_2237 = ((safe_add_func_uint8_t_u_u((safe_lshift_func_uint16_t_u_s(0x7BBBL, (l_2199 <= (**l_2170)))), (**g_970))) , 0L)), g_3)) != (*g_1114)), (**l_2170))), p_5)) == l_2238), 0xC46EL)), 0xC4L)) >= g_1513), 0))) <= (*g_208))) != l_2240)) == p_5) , l_2191[0][5])))), 0x75L))))) && l_2237) || l_2180[0])));
                        (*g_1187) = l_2191[7][8];
                    }
                    else
                    { /* block id: 987 */
                        uint64_t *l_2254 = &l_2002;
                        int32_t l_2260[1];
                        int32_t **l_2261 = &g_1114;
                        int i;
                        for (i = 0; i < 1; i++)
                            l_2260[i] = 6L;
                        (*l_2261) = p_7;
                        ++l_2263[5];
                        (**g_2142) = (*g_1417);
                        (**l_2170) |= (*g_1187);
                    }
                }
            }
            (*l_2266) = p_7;
        }
        for (g_2114 = 0; (g_2114 <= 8); g_2114 += 1)
        { /* block id: 1000 */
            int32_t l_2272 = 0xFE6CA1DCL;
            int32_t l_2273 = 0L;
            int32_t l_2274 = 0xD031946AL;
            int32_t l_2276 = 0xD92C7C99L;
            int32_t l_2277 = 0L;
            int32_t l_2278 = 0x481814BEL;
            int32_t l_2279 = 1L;
            int32_t l_2280 = 0xF08DF185L;
            int32_t l_2281 = 0L;
            int32_t l_2282 = (-1L);
            int32_t l_2283 = 0xABC4EEC8L;
            int32_t ***l_2305 = &g_43;
            int i;
            (*p_7) = (((safe_rshift_func_int16_t_s_s((***g_1507), (((*l_2146) |= (p_6 , (~p_5))) , 9L))) , (safe_mul_func_int64_t_s_s(l_2272, p_6))) | ((p_6 , ((((((l_2272 == (p_6 & (-8L))) >= 249UL) <= l_2272) & p_5) || (*p_7)) > p_6)) > p_6));
            --l_2284;
            for (g_172 = 0; (g_172 <= 8); g_172 += 1)
            { /* block id: 1006 */
                uint16_t ****l_2291 = &l_2288;
                int32_t l_2307 = (-3L);
                uint32_t *l_2332[5][4] = {{&g_1513,&g_1513,&g_502,&g_502},{&g_1513,&g_502,&g_1513,&g_502},{&g_1513,&g_502,&g_1513,&g_502},{&g_502,&g_1513,&g_502,&g_1513},{&g_1513,&g_1513,&g_502,&g_502}};
                int32_t l_2338 = 0x49B76EEAL;
                int32_t l_2339 = 0L;
                int32_t l_2340 = 2L;
                int32_t l_2341[10][5] = {{0x848298BBL,0xA88FF767L,0x7C5C6A81L,0L,0xB927EED0L},{0xA88FF767L,0x848298BBL,0x7C5C6A81L,0L,0x7C5C6A81L},{0xA88FF767L,0xA88FF767L,0xED13222CL,0L,0xB927EED0L},{0x848298BBL,0xA88FF767L,0x7C5C6A81L,0L,0xB927EED0L},{0xA88FF767L,0x848298BBL,0x7C5C6A81L,0L,0x7C5C6A81L},{0xA88FF767L,0xA88FF767L,0xED13222CL,0L,0xB927EED0L},{0x848298BBL,0xA88FF767L,0x7C5C6A81L,0L,0xB927EED0L},{0xA88FF767L,0x848298BBL,0x7C5C6A81L,0L,0x7C5C6A81L},{0xA88FF767L,0xA88FF767L,0xED13222CL,0L,0xB927EED0L},{0x848298BBL,0xA88FF767L,0x7C5C6A81L,0L,0xB927EED0L}};
                int i, j;
                if ((*g_208))
                { /* block id: 1007 */
                    uint16_t *****l_2289 = (void*)0;
                    uint16_t *****l_2290[2][9] = {{(void*)0,&l_2287,&l_2287,(void*)0,&l_2287,&l_2287,(void*)0,&l_2287,&l_2287},{(void*)0,&l_2287,&l_2287,(void*)0,&l_2287,&l_2287,(void*)0,&l_2287,&l_2287}};
                    int i, j;
                    l_2291 = l_2287;
                }
                else
                { /* block id: 1009 */
                    uint32_t l_2306 = 0xA55101E8L;
                    int8_t l_2308 = 0L;
                    const int32_t *l_2310[5][8][5] = {{{&l_1971,(void*)0,(void*)0,&l_2116,&l_2116},{&l_2277,&l_2273,&l_2277,&l_1971,&l_2276},{&l_2280,&l_2116,(void*)0,(void*)0,&l_2115},{&l_2276,&l_2276,&l_2126[2][0],&g_3,&l_1971},{(void*)0,(void*)0,(void*)0,&l_2115,&l_2118},{&g_689[0],&l_2126[2][0],&l_2277,&g_1927,&l_2282},{&l_2110,(void*)0,(void*)0,&l_2110,&l_2113},{&g_689[0],&g_3,&l_2124,&l_2110,&l_2110}},{{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{&l_2276,&l_1971,&l_2110,&l_2110,&l_2124},{&l_2280,(void*)0,&l_2113,&l_2110,(void*)0},{&l_2277,&g_1927,&l_2282,&g_1927,&l_2277},{&l_1971,(void*)0,&l_2118,&l_2115,(void*)0},{(void*)0,&l_1971,&l_1971,&g_3,&l_2126[2][0]},{&l_2115,(void*)0,&l_2115,(void*)0,(void*)0},{&l_2109,&g_3,&l_2276,&l_1971,&l_2277}},{{(void*)0,(void*)0,&l_2116,&l_2116,(void*)0},{&l_1971,&l_2126[2][0],&l_2276,&l_2272,&l_2124},{(void*)0,(void*)0,&l_2115,&l_2113,(void*)0},{(void*)0,&l_2276,&l_1971,&l_2115,&l_2110},{(void*)0,&l_2116,&l_2118,&l_1971,&l_2113},{&l_1971,&l_2273,&l_2282,&l_1971,&l_2282},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{&l_2277,&l_2126[2][0],&g_689[0],&l_1971,(void*)0}},{{&l_2116,(void*)0,&l_2280,(void*)0,&l_2116},{(void*)0,&l_2126[2][0],&l_2282,&g_3,&l_2110},{(void*)0,&l_2113,&l_2110,(void*)0,(void*)0},{&l_2126[2][0],&l_2110,&l_2126[2][0],&l_2126[2][0],&l_2110},{&l_2115,(void*)0,&l_2113,(void*)0,&l_2116},{&l_2110,&l_2115,&l_1971,&l_2276,(void*)0},{&l_2110,&l_2118,&l_2113,&l_2116,(void*)0},{(void*)0,&l_2117,&l_2126[2][0],&l_2273,&l_2109}},{{(void*)0,&l_2110,&l_2110,(void*)0,(void*)0},{(void*)0,&l_2276,&l_2282,&l_1971,&g_689[0]},{&l_2110,&l_1971,&l_2280,&l_2113,&l_2280},{&l_2110,&g_1927,&g_689[0],&l_1971,&l_2282},{&l_2115,(void*)0,(void*)0,(void*)0,&l_2110},{&l_2126[2][0],&l_2273,&l_2109,&l_2273,&l_2126[2][0]},{(void*)0,(void*)0,(void*)0,&l_2116,&l_2113},{(void*)0,&g_1927,(void*)0,&l_2276,&l_1971}}};
                    int32_t l_2312 = 1L;
                    uint16_t l_2313 = 0xC620L;
                    uint16_t **** const l_2319 = (void*)0;
                    int i, j, k;
                    if ((((247UL && (safe_div_func_int8_t_s_s((0x81B6068A3BCC9865LL | (p_6 <= ((p_5 | (((*g_1509) = (safe_sub_func_uint64_t_u_u((safe_add_func_int8_t_s_s((safe_div_func_int16_t_s_s((safe_rshift_func_uint64_t_u_s((p_5 , (p_6 >= (4294967294UL > (((p_5 , l_2304) == l_2305) | p_5)))), l_2306)), l_2307)), p_5)), 3UL))) <= p_6)) , 0UL))), l_2308))) , l_2309[3]) < (**g_1417)))
                    { /* block id: 1011 */
                        const int32_t **l_2311 = &l_2310[0][6][0];
                        (*l_2311) = l_2310[4][4][2];
                        ++l_2313;
                        (*g_44) = 0xA74ADA1DL;
                    }
                    else
                    { /* block id: 1015 */
                        (*g_1187) ^= (*p_7);
                        (****g_2140) = &l_2312;
                    }
                    (*g_1187) ^= (safe_unary_minus_func_uint8_t_u((l_2307 &= (++(****l_1955)))));
                    for (g_659 = 0; (g_659 <= 3); g_659 += 1)
                    { /* block id: 1024 */
                        int32_t ****l_2325 = &l_2305;
                        (*g_1187) = (((l_2319 != (void*)0) , ((safe_mod_func_int32_t_s_s(((((*p_7) = (*g_733)) != (l_2322 > 0x45B58718L)) < (((+g_185) , ((*l_2012) != (l_2325 = l_2324))) >= p_6)), l_2307)) , p_6)) <= p_5);
                    }
                }
                (*p_7) ^= ((safe_mul_func_uint8_t_u_u((safe_sub_func_uint8_t_u_u(l_2279, ((safe_div_func_uint32_t_u_u((l_2307 = (**g_605)), (safe_lshift_func_int8_t_s_s(g_2335, 5)))) == (safe_mod_func_uint32_t_u_u((l_2341[0][0] = (l_2342--)), p_5))))), (+(p_6 , p_5)))) ^ 0L);
                if ((*p_7))
                    break;
                if ((*p_7))
                    continue;
            }
        }
    }
    else
    { /* block id: 1038 */
        uint8_t *l_2346 = &g_1537[0][1];
        uint8_t *l_2347 = &g_126[6][0];
        int32_t l_2379 = 0x65F552ABL;
        int32_t l_2380 = 0xF83FA7B1L;
        int32_t l_2382 = 0x49B9DBF7L;
        int32_t l_2383 = 0L;
        int32_t l_2384 = 1L;
        int32_t l_2385 = 0x11FA983EL;
        int32_t l_2386 = 0x83574D0EL;
        int32_t l_2387 = 0xBD288A0BL;
        int32_t l_2388 = 0L;
        const uint8_t *****l_2392 = &g_278;
        uint64_t l_2478 = 0x37B7EF6DE33CD1C2LL;
        int32_t *l_2481 = &l_2388;
        uint32_t ***l_2552 = &g_1888[0][4][0];
        if (((l_2346 = (****l_1953)) != l_2347))
        { /* block id: 1040 */
            uint32_t l_2348 = 4294967295UL;
            int8_t *l_2355 = &l_2148;
            const uint8_t *l_2369 = &g_1537[0][0];
            const uint8_t **l_2368 = &l_2369;
            const uint8_t ***l_2367 = &l_2368;
            const uint8_t ****l_2366 = &l_2367;
            uint8_t ** const ***l_2371[2][7] = {{&l_2370,(void*)0,(void*)0,&l_2370,&l_2370,&l_2370,&l_2370},{&l_2370,(void*)0,(void*)0,&l_2370,&l_2370,&l_2370,&l_2370}};
            int32_t l_2376[2];
            uint64_t *l_2377 = &g_518;
            int32_t l_2378 = 0L;
            uint32_t l_2389 = 1UL;
            int i, j;
            for (i = 0; i < 2; i++)
                l_2376[i] = 0xA6607748L;
            --l_2348;
            (*p_7) = ((safe_lshift_func_int8_t_s_u((g_185 &= ((*l_2355) &= (safe_add_func_uint32_t_u_u(((***g_1887) &= 4294967287UL), p_5)))), (safe_sub_func_uint16_t_u_u((safe_lshift_func_int16_t_s_s(0x1CE2L, (((0x17L & (safe_mul_func_uint64_t_u_u((((((l_2378 = ((*l_2377) = ((((l_2376[0] = ((safe_add_func_int32_t_s_s((safe_sub_func_uint64_t_u_u(0x146E063347297097LL, (0x6DL & (l_2366 != (g_2372 = l_2370))))), ((*p_7) == p_5))) , 0x2F5F5C31AFCD19E8LL)) | 18446744073709551615UL) ^ l_2348) == p_6))) <= 0x2C0441A9D29CCA17LL) , 4294967290UL) , 0x4AL) & p_6), 1L))) >= p_5) ^ 1L))), p_5)))) == p_5);
            --l_2389;
            l_2392 = &l_2366;
        }
        else
        { /* block id: 1052 */
            uint16_t l_2393 = 0x22BFL;
            int16_t l_2426 = 6L;
            int32_t *l_2450 = &g_1927;
            int32_t l_2467 = 0xBD9A228BL;
            int32_t l_2470[5][9][5] = {{{0x2C7609B5L,0x5A230DB6L,0x6C5408E8L,2L,(-1L)},{0x19889294L,0xF5C7022BL,0xA66A1571L,5L,0x0AA57C4AL},{0xBCE0E0F3L,0xB8BEFA47L,1L,0x4CF41705L,0x61564322L},{4L,1L,1L,(-1L),1L},{0L,8L,0xA66A1571L,0x5A9798A6L,0L},{0xC24F387BL,(-10L),0x6C5408E8L,0xB8BEFA47L,0L},{0x87BEFE2CL,(-1L),1L,0x6BAD0E2BL,0x32F6A4EAL},{0xF5C7022BL,0L,0xBC723BD2L,0x9468781EL,0xDCE19F1BL},{1L,0x10EF8BEEL,3L,0x56D30ABCL,0x5A230DB6L}},{{0xBCBA9110L,0x5A9798A6L,0x03242B5AL,0x2C7609B5L,0xC0C4574AL},{0x200155B8L,0xA52F76F3L,0xB8BEFA47L,(-8L),(-9L)},{0xBC723BD2L,0x3232EF97L,0x37CD1430L,0x3232EF97L,0xBC723BD2L},{0x3232EF97L,0xB46DE65AL,0xFF9ED612L,1L,0x51AEE45CL},{0L,0x08AA5832L,(-1L),(-1L),0x94CEC7FAL},{0x874FC3CEL,1L,0L,0xB46DE65AL,0x51AEE45CL},{8L,(-1L),(-1L),0xFC9A2634L,0xBC723BD2L},{0x51AEE45CL,0L,0x87BEFE2CL,1L,(-9L)},{0xDDC11C7FL,0x03242B5AL,0xFC9A2634L,(-9L),8L}},{{0x06BE4A54L,(-9L),0L,1L,(-1L)},{0L,(-10L),0x0AA57C4AL,0L,0x9468781EL},{6L,0xEBA9940DL,1L,0xC0C4574AL,1L},{9L,(-1L),1L,0xEBA9940DL,0xFC7E913CL},{(-1L),1L,0x2C7609B5L,1L,5L},{0x37CD1430L,5L,0xFF9ED612L,0x0D713517L,6L},{0xA7A22F57L,0x200155B8L,0L,5L,(-9L)},{0xA3AA6587L,0x200155B8L,0x19889294L,0x94CEC7FAL,0x98822D35L},{0x9468781EL,5L,6L,0x6BAD0E2BL,0x87BEFE2CL}},{{0x08AA5832L,1L,0xDCE19F1BL,3L,0L},{0L,(-1L),0xF5C7022BL,0L,0xBC723BD2L},{0xC14F001BL,0xEBA9940DL,0xE770A445L,9L,0x0AA57C4AL},{9L,(-10L),0xA7906B7AL,0x2C7609B5L,0x9DA4FCE9L},{0xA52F76F3L,(-9L),0xC24F387BL,0x5A230DB6L,9L},{0xBCBA9110L,(-10L),(-1L),0x874FC3CEL,(-1L)},{8L,0x1A5975BBL,0x1A5975BBL,8L,0xBCE0E0F3L},{0xEBA9940DL,0x87BEFE2CL,0x5A9798A6L,0xA7A22F57L,0x1C1F1543L},{0x5B3C7D79L,1L,0x37CD1430L,(-9L),9L}},{{0xDDC11C7FL,0x6C5408E8L,8L,0xA7A22F57L,0x6BAD0E2BL},{0xC24F387BL,3L,0L,8L,0xC14F001BL},{0x61564322L,0xB8BEFA47L,0L,0x874FC3CEL,1L},{1L,0x9DA4FCE9L,0L,0x5A230DB6L,0x0A8C1EE9L},{4L,0x06BE4A54L,1L,0x2C7609B5L,0x5B3C7D79L},{1L,5L,1L,9L,0x874FC3CEL},{1L,(-1L),0xF8107E6FL,0L,0xA3AA6587L},{0xFC7E913CL,4L,0xA66A1571L,3L,0x5A230DB6L},{(-1L),0xF224AD8BL,0x9DA4FCE9L,0x6BAD0E2BL,0xF5C7022BL}}};
            int i, j, k;
            l_2393--;
            if ((0x8D3F9E7EE7FC0861LL > (safe_add_func_int32_t_s_s(l_2388, 7UL))))
            { /* block id: 1054 */
                int16_t l_2417 = 0x226AL;
                int32_t l_2427 = 1L;
                const int16_t l_2428 = 0x3165L;
                int32_t l_2430 = (-1L);
                uint16_t l_2441 = 1UL;
                int32_t l_2477[8] = {1L,(-4L),1L,(-4L),1L,(-4L),1L,(-4L)};
                int64_t l_2505 = 0x7D22A03B29E0AF0ELL;
                int i;
lbl_2485:
                for (l_2383 = 0; (l_2383 <= 17); ++l_2383)
                { /* block id: 1057 */
                    uint32_t l_2408 = 9UL;
                    int8_t *l_2416[10][7] = {{&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185},{(void*)0,&l_2148,&l_2148,(void*)0,(void*)0,&l_2148,&l_2148},{&l_2148,&g_185,&l_2148,&g_185,&l_2148,&g_185,&l_2148},{(void*)0,(void*)0,&l_2148,&l_2148,(void*)0,(void*)0,&l_2148},{&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185},{(void*)0,&l_2148,&l_2148,(void*)0,(void*)0,&l_2148,&l_2148},{&l_2148,&g_185,&l_2148,&g_185,&l_2148,&g_185,&l_2148},{(void*)0,(void*)0,&l_2148,&l_2148,(void*)0,(void*)0,&l_2148},{&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185},{(void*)0,&l_2148,&l_2148,(void*)0,(void*)0,&l_2148,&l_2148}};
                    int32_t l_2440 = (-2L);
                    const uint32_t *l_2449[6][5] = {{&l_2408,&g_142,(void*)0,&g_142,&l_2408},{(void*)0,(void*)0,&g_142,&g_142,(void*)0},{(void*)0,&l_2408,(void*)0,&l_2408,&l_2408},{&l_2408,&l_2408,&l_2408,&g_659,&g_659},{&l_2408,(void*)0,(void*)0,&l_2408,&g_659},{&l_2408,&g_142,&l_2408,&g_659,&g_659}};
                    const uint32_t **l_2448 = &l_2449[2][3];
                    int32_t l_2472 = 0x6AFF57C1L;
                    int32_t l_2473 = 0x7501276FL;
                    int32_t l_2474 = (-8L);
                    int32_t l_2476[4][7] = {{4L,4L,0L,0xFDC2693BL,0L,4L,4L},{0x6BC6E75EL,(-8L),6L,(-8L),0x6BC6E75EL,0x6BC6E75EL,(-8L)},{0x49ACB2F0L,0x5632B768L,0x49ACB2F0L,0L,0L,0x49ACB2F0L,0x5632B768L},{(-8L),0xAE340722L,6L,6L,0xAE340722L,(-8L),0xAE340722L}};
                    int i, j;
                    if ((((*p_7) || (safe_mul_func_int8_t_s_s(((safe_rshift_func_int16_t_s_u((safe_rshift_func_uint32_t_u_u((l_2380 && ((((safe_add_func_uint64_t_u_u(l_2408, ((safe_mul_func_uint8_t_u_u((+(safe_mul_func_uint8_t_u_u(l_2385, (safe_div_func_int8_t_s_s(0L, (g_185 = (l_2417 = (p_5 & l_2393)))))))), (safe_mod_func_uint16_t_u_u((p_5 , (safe_mul_func_int16_t_s_s(((safe_mul_func_int8_t_s_s((((*g_2375)--) < 0x16L), p_5)) == 0x224E53AAL), p_6))), 0x6FEBL)))) , l_2408))) <= g_174) , p_5) , l_2426)), l_2427)), l_2428)) ^ 0x23L), p_6))) , (*p_7)))
                    { /* block id: 1061 */
                        int32_t *l_2429 = (void*)0;
                        return l_2429;
                    }
                    else
                    { /* block id: 1063 */
                        int32_t l_2435[5];
                        int i;
                        for (i = 0; i < 5; i++)
                            l_2435[i] = 0xE5F14FE5L;
                        (*g_1114) |= (((l_2430 , ((safe_mul_func_uint64_t_u_u((safe_div_func_int64_t_s_s(l_2408, 7UL)), l_2408)) >= (l_2408 , (l_2435[0] && ((!(safe_div_func_int16_t_s_s((l_2428 , ((*g_1509) = ((~0x2ABF0990L) & (((l_2435[0] = (p_6 & 18446744073709551610UL)) | p_5) && 1L)))), l_2386))) , l_2426))))) != (*g_971)) | (***g_1887));
                        l_2441--;
                    }
                    if (((safe_sub_func_int32_t_s_s((*p_7), 0xCB3EC86CL)) && (&g_2069[1][1] == l_2448)))
                    { /* block id: 1069 */
                        const int8_t l_2465 = 0L;
                        int64_t l_2466 = (-1L);
                        l_2450 = (void*)0;
                        (*g_1187) = l_2379;
                        (*p_7) ^= ((l_2408 >= (((l_2427 = l_2440) < ((safe_rshift_func_uint32_t_u_s((safe_lshift_func_uint8_t_u_u(((safe_add_func_int16_t_s_s((*g_1509), ((***g_2373) & ((safe_lshift_func_int64_t_s_u(1L, 51)) <= ((((-2L) & 0x90L) || (safe_rshift_func_int16_t_s_s((safe_lshift_func_int32_t_s_u((safe_add_func_uint64_t_u_u((((void*)0 != &g_163) <= l_2465), l_2466)), 20)), 8))) >= (***g_2373)))))) > l_2384), l_2465)), 2)) < l_2440)) && l_2441)) , l_2466);
                    }
                    else
                    { /* block id: 1074 */
                        int16_t l_2468 = 0L;
                        int32_t l_2469 = 0x24C827FEL;
                        int32_t l_2471 = 0x14F9FC25L;
                        int32_t l_2475 = (-8L);
                        ++l_2478;
                        l_2481 = &l_2470[1][0][3];
                    }
                }
                for (l_2322 = (-4); (l_2322 > 0); l_2322 = safe_add_func_uint8_t_u_u(l_2322, 1))
                { /* block id: 1081 */
                    uint32_t l_2494 = 0xE331C18BL;
                    int32_t l_2498[1][3];
                    int i, j;
                    for (i = 0; i < 1; i++)
                    {
                        for (j = 0; j < 3; j++)
                            l_2498[i][j] = 0L;
                    }
                    (*p_7) = ((+((p_5 , (void*)0) == p_7)) >= (***g_1887));
                    for (l_2385 = 1; (l_2385 >= 0); l_2385 -= 1)
                    { /* block id: 1085 */
                        if (l_2384)
                            goto lbl_2485;
                        (*l_2481) &= (*p_7);
                        if ((*p_7))
                            break;
                        (*g_1114) |= ((safe_add_func_uint32_t_u_u((safe_mul_func_int8_t_s_s((safe_sub_func_int8_t_s_s((safe_mul_func_uint8_t_u_u(l_2494, (l_2498[0][1] &= (((void*)0 != l_2495) != (0L <= (((***g_1887)--) <= 1L)))))), (*l_2481))), (safe_mod_func_int64_t_s_s((safe_mod_func_int16_t_s_s((l_2427 | p_5), ((l_2477[5] |= (safe_mul_func_uint8_t_u_u((((g_185 & 2UL) == l_2505) >= 0xE640C1D5FEB8AD3CLL), l_2430))) || p_5))), 18446744073709551611UL)))), 0x22A9C7A8L)) != p_6);
                    }
                    l_2498[0][1] = 0x8E5B17DAL;
                }
            }
            else
            { /* block id: 1096 */
                uint32_t l_2510 = 0xDD2AD2A0L;
                uint64_t *l_2518 = &l_2071;
                uint16_t *l_2527 = &g_1779;
                uint32_t ***l_2547 = &g_1888[0][0][8];
                uint32_t ****l_2548 = &l_2547;
                int8_t *l_2551 = &g_185;
                uint32_t ****l_2553[7] = {&g_1887,&g_1887,&g_1887,&g_1887,&g_1887,&g_1887,&g_1887};
                uint32_t ***l_2554[3][3][6] = {{{&g_1888[0][1][8],(void*)0,&g_1888[0][4][1],&g_1888[0][1][8],&g_1888[1][6][0],&g_1888[0][1][8]},{&g_1888[1][0][4],(void*)0,&g_1888[0][1][8],&g_1888[0][1][8],(void*)0,&g_1888[1][0][4]},{&g_1888[0][1][8],&g_1888[1][6][0],&g_1888[0][1][8],&g_1888[0][4][1],(void*)0,&g_1888[0][1][8]}},{{&g_1888[1][6][3],&g_1888[1][0][4],&g_1888[0][1][8],&g_1888[0][1][8],(void*)0,&g_1888[0][1][8]},{&g_1888[1][6][3],&g_1888[0][0][6],&g_1888[0][1][8],&g_1888[0][4][1],&g_1888[0][1][8],&g_1888[0][3][6]},{&g_1888[0][1][8],(void*)0,&g_1888[0][1][8],&g_1888[0][1][8],&g_1888[0][1][8],(void*)0}},{{&g_1888[1][0][4],&g_1888[0][3][7],&g_1888[1][3][7],&g_1888[0][1][8],&g_1888[0][1][8],&g_1888[1][0][4]},{&g_1888[0][1][8],&g_1888[0][4][1],&g_1888[1][0][7],&g_1888[0][1][8],(void*)0,&g_1888[0][1][8]},{&g_1888[0][1][8],&g_1888[0][4][1],&g_1888[1][6][0],&g_1888[0][1][8],&g_1888[0][1][8],&g_1888[0][1][8]}}};
                int i, j, k;
                l_2481 = (l_2450 = &l_2467);
                (**g_1189) = (p_6 , (safe_rshift_func_int64_t_s_s((safe_mod_func_int16_t_s_s((255UL != (*l_2481)), (((*l_2518) &= (l_2510 , (((p_6 != ((safe_mod_func_uint8_t_u_u(1UL, ((((***l_2495) == ((safe_lshift_func_int16_t_s_s((+p_5), 2)) , (***l_2495))) && p_5) , 9UL))) > 0L)) , p_6) <= p_5))) || 1UL))), 26)));
                l_2470[3][2][2] &= ((0xD0L & (((*l_2450) || p_6) ^ ((*p_7) && ((safe_lshift_func_int16_t_s_u(p_6, 13)) ^ (safe_sub_func_int8_t_s_s((*l_2450), (safe_mul_func_uint64_t_u_u((safe_lshift_func_int64_t_s_u(((safe_lshift_func_int64_t_s_u(((p_5 , (((((*l_2548) = l_2547) != (l_2555 = (l_2554[2][0][3] = (((((safe_mul_func_int8_t_s_s(((*l_2551) |= 0xA3L), 0xD1L)) , 0x8511L) == (*l_2481)) , p_5) , l_2552)))) != 0x2F7CBCD2330F1E16LL) ^ (*g_2375))) && (**g_970)), l_2510)) >= (*p_7)), p_6)), (*l_2481))))))))) >= l_2510);
            }
            return (*g_1417);
        }
    }
    return l_2556;
}


/* ------------------------------------------ */
/* 
 * reads : g_970 g_971 g_615 g_124 g_1509 g_1187 g_71 g_755 g_236 g_129 g_130 g_126 g_1887 g_1888 g_606 g_172 g_502 g_3 g_935 g_340
 * writes: g_174 g_1510 g_1188 g_172 g_592 g_518 g_236
 */
static uint32_t  func_8(uint32_t  p_9, int32_t  p_10, int8_t  p_11, uint64_t  p_12, int32_t * p_13)
{ /* block id: 709 */
    uint32_t l_1561 = 0x0CE5D1E8L;
    int64_t l_1594 = 0xD607B09B4D82A371LL;
    int8_t l_1595[3][4] = {{0xA3L,1L,0xA3L,6L},{0xA3L,6L,6L,0xA3L},{0L,6L,(-1L),6L}};
    int32_t l_1633 = 0xA65BFCA2L;
    int32_t l_1637 = 1L;
    int32_t l_1660[2];
    int32_t l_1700 = 0xF4B3CCB9L;
    int32_t l_1701 = 0x8F4D65CCL;
    int32_t l_1702 = (-6L);
    int32_t l_1703 = 0x7CA4D1B3L;
    int32_t l_1704 = 1L;
    int32_t l_1706[3];
    int32_t ***l_1822 = &g_43;
    uint32_t **l_1868 = &g_606[1][6];
    uint32_t ***l_1867 = &l_1868;
    int16_t *****l_1876 = (void*)0;
    int i, j;
    for (i = 0; i < 2; i++)
        l_1660[i] = 0L;
    for (i = 0; i < 3; i++)
        l_1706[i] = 0xDA149622L;
    for (p_11 = 0; (p_11 >= 23); p_11++)
    { /* block id: 712 */
        int64_t l_1542 = 0xE7D0C160C47A2B5ELL;
        int32_t l_1562 = 0xFAA8BDEBL;
        int16_t l_1613[6][7][6] = {{{0xF72AL,0x7B22L,0xFA42L,0x685AL,0x41FCL,(-2L)},{0xCD64L,0x1BD0L,0xF418L,0x19BEL,0x1428L,0x252EL},{0xEB17L,0x685AL,0x36A9L,1L,0xAD09L,0x19BEL},{0x1BD0L,0L,0L,0x599FL,3L,0x8018L},{0L,1L,0L,0x6C45L,0x85D7L,0xE8A6L},{0x1E26L,0x0518L,0L,0x99B9L,(-2L),(-4L)},{0xB4BDL,(-2L),(-1L),0xCD1EL,0x54CAL,0x4C35L}},{{4L,1L,1L,0x7B22L,(-1L),0L},{0L,0x7B81L,0xCD64L,0x924EL,0xA8ADL,1L},{0L,0x69A4L,0xA4FDL,0L,0L,0xA4FDL},{0x1E26L,0x1E26L,0x2519L,0x29ACL,1L,9L},{1L,(-1L),1L,0L,0xE837L,0x2519L},{0x4061L,1L,1L,1L,0x1E26L,9L},{0xCD64L,1L,0x2519L,0xDE5FL,0L,0xA4FDL}},{{0xDE5FL,0L,0xA4FDL,(-3L),0x85D7L,1L},{1L,0x252EL,0xCD64L,(-1L),0xA49FL,0L},{0xA49FL,(-1L),1L,(-10L),3L,0x4C35L},{0x9211L,0x19BEL,(-1L),1L,1L,0x3E74L},{0x0518L,(-9L),0L,1L,0x924EL,1L},{(-1L),0L,(-3L),0L,0x2519L,1L},{0xCD1EL,(-2L),(-1L),(-9L),0L,0x36A9L}},{{0x41FCL,(-1L),0xEC55L,(-1L),0x9211L,0x4CCDL},{2L,0x1BD0L,0x9211L,0xEC55L,0x10E6L,0x1E26L},{0x8181L,(-1L),0x6C45L,0x19BEL,(-2L),0x1428L},{0xE837L,0L,0x4061L,0xEB17L,0x15D7L,(-1L)},{0x599FL,(-1L),3L,0xAD09L,0x6C45L,0L},{1L,0L,0x16CAL,0L,0xDE5FL,0x1BD0L},{0x8018L,0x16CAL,0x41FCL,0x54CAL,0L,0x54CAL}},{{0xAD09L,0x924EL,0xAD09L,1L,0xA4FDL,3L},{1L,0x5F53L,0xDE5FL,4L,0x3CD0L,0L},{(-1L),(-1L),(-9L),4L,0xCD1EL,1L},{1L,0x10E6L,0L,1L,(-2L),0x599FL},{0xAD09L,0x685AL,(-1L),0x54CAL,1L,(-2L)},{0x8018L,0xF418L,(-1L),0L,0xAD09L,(-1L)},{1L,0xB4BDL,0L,0xAD09L,(-1L),0x252EL}},{{0x599FL,0x4061L,(-2L),0xEB17L,1L,1L},{0xE837L,0x41FCL,0L,0x19BEL,0x0518L,0x99B9L},{0x8181L,0L,0x7D2CL,0xEC55L,1L,(-4L)},{0xCD64L,0x85D7L,0L,0x2F13L,(-1L),1L},{1L,0x599FL,1L,0x41FCL,1L,(-1L)},{(-1L),0x10E6L,(-3L),0L,0xFA42L,0x29ACL},{0x15D7L,0L,2L,0xEB17L,0x2519L,0x1428L}}};
        int32_t l_1632 = 9L;
        int32_t l_1635[2];
        uint64_t l_1640[7] = {0x4002F3BD86494C48LL,0xD4845CA3B5830A6BLL,0xD4845CA3B5830A6BLL,0x4002F3BD86494C48LL,0xD4845CA3B5830A6BLL,0xD4845CA3B5830A6BLL,0x4002F3BD86494C48LL};
        uint32_t l_1643 = 8UL;
        int8_t l_1694 = 0xADL;
        uint8_t ****l_1736 = &g_1052;
        int32_t *l_1795[2][4];
        uint16_t l_1815 = 0x08EAL;
        int32_t ***l_1820 = &g_43;
        int64_t *l_1952 = &g_236;
        int i, j, k;
        for (i = 0; i < 2; i++)
            l_1635[i] = (-2L);
        for (i = 0; i < 2; i++)
        {
            for (j = 0; j < 4; j++)
                l_1795[i][j] = &l_1637;
        }
        if ((l_1542 = (-4L)))
        { /* block id: 714 */
            uint64_t *l_1559 = &g_174;
            int32_t l_1560 = 0L;
            (*g_1187) = ((0x7FL && (safe_mul_func_uint32_t_u_u(((((safe_rshift_func_uint16_t_u_u(p_9, ((safe_mul_func_int16_t_s_s((((((l_1542 & (((*g_1509) = (((**g_970) >= (((safe_sub_func_int16_t_s_s(0L, ((safe_add_func_uint8_t_u_u(1UL, (l_1542 & ((((*l_1559) = (0L == (safe_mul_func_uint64_t_u_u(((safe_div_func_uint32_t_u_u((safe_sub_func_int16_t_s_s((l_1542 > 8L), p_10)), (*p_13))) < g_124), p_9)))) , l_1560) || 0x01L)))) < p_12))) , l_1542) ^ p_12)) > l_1542)) < l_1560)) == 4294967295UL) && l_1561) ^ 0L) <= (-1L)), 0xF895L)) != (*p_13)))) ^ p_12) , l_1560) < 0L), (*p_13)))) , (*p_13));
            p_13 = &p_10;
        }
        else
        { /* block id: 719 */
            int8_t l_1563 = 0xFEL;
            int32_t l_1634[3];
            uint16_t *l_1737 = (void*)0;
            int32_t l_1754 = 0x26761E7DL;
            int32_t l_1778 = 0L;
            int8_t l_1793 = (-7L);
            int32_t *l_1834 = &l_1702;
            uint32_t l_1873 = 0x4CBDF7B0L;
            uint32_t **l_1884 = &g_606[0][2];
            uint32_t l_1891 = 0UL;
            int64_t l_1903 = (-2L);
            int32_t l_1938 = 0x4E6667FEL;
            int i;
            for (i = 0; i < 3; i++)
                l_1634[i] = 9L;
            l_1562 = (*p_13);
            if (l_1563)
                break;
            if ((*p_13))
                break;
            for (g_172 = 15; (g_172 == 29); g_172 = safe_add_func_int8_t_s_s(g_172, 7))
            { /* block id: 725 */
                uint32_t l_1568 = 0x4A59FEA9L;
                uint32_t *l_1573 = &g_142;
                int32_t l_1638 = 2L;
                int32_t l_1639 = 0xFCDEB8A5L;
                int32_t l_1699 = 0x7EAFDBFCL;
                int32_t l_1705 = 1L;
                uint8_t l_1707 = 255UL;
                int32_t **l_1794 = &g_214[5];
                uint32_t l_1890[5] = {0x326A604BL,0x326A604BL,0x326A604BL,0x326A604BL,0x326A604BL};
                uint32_t l_1902 = 18446744073709551610UL;
                int32_t ****l_1936 = &l_1822;
                int i;
                for (g_592 = 0; (g_592 != 24); g_592 = safe_add_func_uint64_t_u_u(g_592, 8))
                { /* block id: 728 */
                    --l_1568;
                    for (g_518 = 0; (g_518 != 18); g_518++)
                    { /* block id: 732 */
                        return g_71;
                    }
                }
            }
        }
        l_1706[2] ^= (((safe_div_func_uint16_t_u_u((safe_unary_minus_func_int32_t_s((*p_13))), 4UL)) || (((safe_mod_func_int64_t_s_s(((*l_1952) = ((1L < (l_1633 = (((p_9 , ((safe_lshift_func_uint16_t_u_u((safe_mul_func_int16_t_s_s((&l_1867 != ((((((safe_div_func_uint8_t_u_u((((((void*)0 != g_755) && (255UL >= ((void*)0 != &g_522[0]))) < g_236) ^ p_9), (**g_129))) , p_9) ^ 0xB1BD2EA8L) | (***g_1887)) && p_12) , &g_1887)), p_12)), 13)) ^ p_9)) == p_10) & g_3))) <= p_10)), g_935[3])) , p_10) , 0xA9DEL)) >= p_10);
        (*g_1187) = (*p_13);
    }
    return g_340;
}


/* ------------------------------------------ */
/* 
 * reads : g_3 g_43 g_44 g_159 g_142 g_160 g_126 g_67 g_110 g_659 g_174 g_124 g_689 g_129 g_130 g_272 g_71 g_571 g_185 g_518 g_339 g_733 g_259 g_755 g_606 g_172 g_502 g_340 g_662 g_819 g_209 g_879 g_926 g_927 g_935 g_605 g_970 g_753 g_208 g_657 g_1050 g_236 g_1051 g_1052 g_971 g_615 g_820 g_821 g_1164 g_1187 g_1189 g_1114 g_1271 g_1270 g_1348 g_1377 g_1412 g_1413 g_1188 g_1417 g_592 g_1501 g_1513 g_1509
 * writes: g_142 g_160 g_67 g_657 g_659 g_124 g_571 g_518 g_662 g_71 g_159 g_126 g_172 g_502 g_174 g_340 g_44 g_689 g_236 g_185 g_110 g_880 g_214 g_43 g_1050 g_1114 g_1187 g_1188 g_927 g_1378 g_1348 g_1506 g_1510 g_935
 */
static uint32_t  func_14(const int32_t * p_15)
{ /* block id: 4 */
    int32_t *l_17 = &g_3;
    int32_t *l_18[6];
    uint8_t l_22 = 1UL;
    uint8_t l_1058 = 0xC4L;
    int8_t l_1126[7] = {(-1L),(-1L),(-1L),(-1L),(-1L),(-1L),(-1L)};
    const int32_t * const l_1225[5] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
    const int32_t * const * const l_1224 = &l_1225[0];
    const int32_t * const * const *l_1223 = &l_1224;
    const int32_t * const * const **l_1222 = &l_1223;
    const int32_t * const * const ***l_1221 = &l_1222;
    int32_t l_1246[10] = {0x52362B5DL,0x52362B5DL,0x52362B5DL,0x52362B5DL,0x52362B5DL,0x52362B5DL,0x52362B5DL,0x52362B5DL,0x52362B5DL,0x52362B5DL};
    int8_t l_1249 = (-4L);
    uint8_t ** const l_1323 = &g_130[0];
    int8_t l_1421 = 7L;
    int16_t *l_1464[3][10] = {{(void*)0,&g_571,(void*)0,(void*)0,&g_571,(void*)0,(void*)0,&g_571,(void*)0,(void*)0},{&g_571,&g_571,&g_67,&g_571,&g_571,&g_67,&g_571,&g_571,&g_67,&g_571},{&g_571,(void*)0,(void*)0,&g_571,(void*)0,(void*)0,&g_571,(void*)0,(void*)0,&g_571}};
    int32_t l_1469 = 0x47F7651DL;
    uint64_t l_1473 = 0xDCFB14709CB2FCB1LL;
    int64_t l_1484[7] = {0xFA15FBF027C89105LL,0xFA15FBF027C89105LL,0xFA15FBF027C89105LL,0xFA15FBF027C89105LL,0xFA15FBF027C89105LL,0xFA15FBF027C89105LL,0xFA15FBF027C89105LL};
    const uint16_t l_1487 = 0x8153L;
    uint64_t l_1496 = 18446744073709551615UL;
    int16_t * const *l_1504 = &l_1464[1][7];
    int16_t * const **l_1503 = &l_1504;
    int16_t * const ** const *l_1502 = &l_1503;
    int16_t * const ** const **l_1505 = &l_1502;
    uint8_t l_1514 = 2UL;
    int16_t l_1517 = 1L;
    uint64_t *** const l_1519 = (void*)0;
    int32_t l_1522 = (-1L);
    int64_t ***l_1524 = &g_880;
    int64_t ****l_1523 = &l_1524;
    int32_t l_1525 = 3L;
    int32_t *l_1526 = &g_935[2];
    int i, j;
    for (i = 0; i < 6; i++)
        l_18[i] = (void*)0;
    if ((safe_unary_minus_func_int32_t_s((l_17 == (l_18[0] = (void*)0)))))
    { /* block id: 6 */
        int32_t **l_19 = &l_18[0];
        int32_t l_1024 = (-8L);
        uint64_t l_1026 = 18446744073709551613UL;
        int32_t l_1027 = 0xAD601D51L;
        const int32_t *l_1043[4];
        uint8_t *****l_1053[9] = {&g_1051,&g_1051,&g_1051,&g_1051,&g_1051,&g_1051,&g_1051,&g_1051,&g_1051};
        uint32_t l_1084 = 0xB6219316L;
        uint8_t l_1105 = 0x9EL;
        int32_t ****l_1132 = &g_339;
        int32_t *****l_1131 = &l_1132;
        uint16_t *l_1147 = &g_124;
        uint16_t l_1248 = 65535UL;
        int i;
        for (i = 0; i < 4; i++)
            l_1043[i] = (void*)0;
        (*l_19) = &g_3;
        if (g_3)
        { /* block id: 8 */
            int32_t * const *l_42 = &l_18[2];
            int32_t l_1025[9][4][7] = {{{0x3059DFE1L,0xD3923814L,0x0C08CBCCL,0xC773C18EL,0xC773C18EL,0x0C08CBCCL,0xD3923814L},{0xAB62EF84L,(-1L),8L,0x3C7433C5L,4L,0x3B415524L,3L},{0xD787712DL,0xD3923814L,(-4L),0x20FF899EL,0xC773C18EL,(-4L),(-1L)},{0xAB62EF84L,3L,1L,0x3C7433C5L,0x0E791D7CL,(-3L),3L}},{{0x3059DFE1L,(-1L),(-4L),0xC773C18EL,0x20FF899EL,(-4L),0xD3923814L},{0xE8516E0DL,3L,8L,0xF3257FAFL,0x0E791D7CL,0x3B415524L,1L},{0x3059DFE1L,0xD3923814L,0x0C08CBCCL,0xC773C18EL,0xC773C18EL,0x0C08CBCCL,0xD3923814L},{0xAB62EF84L,(-1L),8L,0x3C7433C5L,4L,0x3B415524L,3L}},{{0xD787712DL,0xD3923814L,(-4L),0x20FF899EL,0xC773C18EL,(-4L),(-1L)},{0xAB62EF84L,3L,1L,0x3C7433C5L,0x0E791D7CL,(-3L),3L},{0x3059DFE1L,(-1L),(-4L),0xC773C18EL,0x20FF899EL,(-4L),0xD3923814L},{0xE8516E0DL,3L,8L,0xF3257FAFL,0x0E791D7CL,0x3B415524L,1L}},{{0x3059DFE1L,0xD3923814L,0xC773C18EL,0xD787712DL,0xD787712DL,0xC773C18EL,0x2368F7CAL},{0xCD320132L,0xFF086BB6L,(-1L),0x6E16E27AL,(-1L),0x04C4B24CL,0xEB801972L},{0x200C58C5L,0x2368F7CAL,0x09C70FC5L,0xE612EC73L,0xD787712DL,0x09C70FC5L,0xCA6D7C82L},{0xCD320132L,0L,0x0E791D7CL,0x6E16E27AL,0xE8516E0DL,0x3C7433C5L,0xEB801972L}},{{(-7L),0xCA6D7C82L,0x09C70FC5L,0xD787712DL,0xE612EC73L,0x09C70FC5L,0x2368F7CAL},{0xBDB0F4F1L,0L,(-1L),(-4L),0xE8516E0DL,0x04C4B24CL,0xA5A1D790L},{(-7L),0x2368F7CAL,0xC773C18EL,0xD787712DL,0xD787712DL,0xC773C18EL,0x2368F7CAL},{0xCD320132L,0xFF086BB6L,(-1L),0x6E16E27AL,(-1L),0x04C4B24CL,0xEB801972L}},{{0x200C58C5L,0x2368F7CAL,0x09C70FC5L,0xE612EC73L,0xD787712DL,0x09C70FC5L,0xCA6D7C82L},{0xCD320132L,0L,0x0E791D7CL,0x6E16E27AL,0xE8516E0DL,0x3C7433C5L,0xEB801972L},{(-7L),0xCA6D7C82L,0x09C70FC5L,0xD787712DL,0xE612EC73L,0x09C70FC5L,0x2368F7CAL},{0xBDB0F4F1L,0L,(-1L),(-4L),0xE8516E0DL,0x04C4B24CL,0xA5A1D790L}},{{(-7L),0x2368F7CAL,0xC773C18EL,0xD787712DL,0xD787712DL,0xC773C18EL,0x2368F7CAL},{0xCD320132L,0xFF086BB6L,(-1L),0x6E16E27AL,(-1L),0x04C4B24CL,0xEB801972L},{0x200C58C5L,0x2368F7CAL,0x09C70FC5L,0xE612EC73L,0xD787712DL,0x09C70FC5L,0xCA6D7C82L},{0xCD320132L,0L,0x0E791D7CL,0x6E16E27AL,0xE8516E0DL,0x3C7433C5L,0xEB801972L}},{{(-7L),0xCA6D7C82L,0x09C70FC5L,0xD787712DL,0xE612EC73L,0x09C70FC5L,0x2368F7CAL},{0xBDB0F4F1L,0L,(-1L),(-4L),0xE8516E0DL,0x04C4B24CL,0xA5A1D790L},{(-7L),0x2368F7CAL,0xC773C18EL,0xD787712DL,0xD787712DL,0xC773C18EL,0x2368F7CAL},{0xCD320132L,0xFF086BB6L,(-1L),0x6E16E27AL,(-1L),0x04C4B24CL,0xEB801972L}},{{0x200C58C5L,0x2368F7CAL,0x09C70FC5L,0xE612EC73L,0xD787712DL,0x09C70FC5L,0xCA6D7C82L},{0xCD320132L,0L,0x0E791D7CL,0x6E16E27AL,0xE8516E0DL,0x3C7433C5L,0xEB801972L},{(-7L),0xCA6D7C82L,0x09C70FC5L,0xD787712DL,0xE612EC73L,0x09C70FC5L,0x2368F7CAL},{0xBDB0F4F1L,0L,(-1L),(-4L),0xE8516E0DL,0x04C4B24CL,0xA5A1D790L}}};
            int i, j, k;
            l_1027 ^= ((g_3 != 6L) != (((safe_sub_func_int16_t_s_s(g_3, l_22)) , ((((safe_sub_func_uint16_t_u_u(((func_25(&l_17, g_3, func_29((safe_add_func_uint64_t_u_u((((g_3 ^ ((safe_lshift_func_uint64_t_u_u((safe_lshift_func_uint64_t_u_u(0x26B5CFDA6C2E3A4CLL, 3)), 18)) , func_37(g_3, &g_3, l_42, g_43))) <= 1UL) & 1L), g_159[1][0])))) >= 8UL) >= l_1024), l_1025[3][3][3])) | 0xFA767BC4DB96C12ALL) == l_1024) != l_1026)) , 0xC4C5L));
        }
        else
        { /* block id: 507 */
            int32_t l_1030 = 0x9D5C0064L;
            uint64_t *l_1042 = &g_174;
            uint8_t ***l_1049 = &g_129;
            uint8_t ****l_1048 = &l_1049;
            uint8_t *****l_1047 = &l_1048;
            int8_t *l_1059[5][10] = {{&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185},{&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185},{&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185},{&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185},{&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185}};
            int32_t l_1060 = (-1L);
            int16_t *l_1061[7][5][6] = {{{&g_592,&g_340,&g_340,&g_592,&g_592,(void*)0},{&g_592,&g_67,(void*)0,(void*)0,&g_592,&g_571},{(void*)0,&g_571,&g_571,&g_571,&g_592,&g_340},{&g_571,&g_67,(void*)0,&g_340,&g_592,&g_571},{&g_571,&g_340,&g_571,&g_592,&g_340,&g_571}},{{&g_571,&g_67,&g_340,(void*)0,(void*)0,&g_571},{&g_571,(void*)0,&g_592,&g_67,&g_571,&g_67},{(void*)0,&g_592,(void*)0,&g_571,&g_67,&g_571},{&g_340,(void*)0,&g_340,&g_340,&g_571,(void*)0},{&g_592,(void*)0,&g_67,(void*)0,&g_67,&g_67}},{{&g_340,(void*)0,(void*)0,(void*)0,(void*)0,&g_340},{&g_592,&g_571,&g_571,&g_340,&g_571,&g_592},{&g_340,&g_592,&g_571,&g_571,&g_571,(void*)0},{(void*)0,&g_67,&g_571,&g_67,&g_67,&g_592},{&g_571,&g_571,&g_67,(void*)0,&g_571,&g_571}},{{&g_571,(void*)0,&g_571,&g_592,&g_592,&g_571},{&g_571,&g_571,(void*)0,&g_340,(void*)0,(void*)0},{&g_571,&g_571,&g_67,&g_571,&g_340,(void*)0},{(void*)0,&g_571,&g_67,(void*)0,&g_571,(void*)0},{&g_592,(void*)0,(void*)0,&g_592,&g_340,&g_571}},{{&g_592,&g_340,&g_571,&g_592,&g_340,&g_571},{&g_67,&g_571,&g_67,&g_592,&g_571,&g_592},{&g_571,&g_340,&g_571,&g_571,&g_67,(void*)0},{&g_571,&g_592,&g_571,&g_340,&g_571,&g_592},{&g_67,&g_571,&g_571,&g_340,(void*)0,&g_340}},{{&g_67,&g_592,(void*)0,&g_571,&g_592,&g_67},{(void*)0,&g_592,&g_67,&g_340,(void*)0,(void*)0},{&g_340,&g_571,&g_340,&g_571,&g_67,&g_340},{&g_67,&g_67,&g_571,&g_571,&g_592,&g_571},{&g_340,&g_67,&g_67,&g_340,&g_571,&g_340}},{{&g_571,&g_340,&g_571,(void*)0,&g_571,&g_67},{(void*)0,&g_571,&g_592,&g_592,&g_571,(void*)0},{&g_340,&g_592,(void*)0,&g_67,&g_67,&g_571},{&g_571,&g_592,&g_340,&g_571,&g_571,&g_67},{&g_571,(void*)0,&g_571,&g_67,&g_340,&g_67}}};
            int32_t l_1062 = 0x183491ACL;
            int32_t l_1063 = (-1L);
            uint64_t **l_1086 = &l_1042;
            uint64_t ***l_1085 = &l_1086;
            int64_t l_1095 = 0x31FEA2FC479E0405LL;
            int32_t l_1122 = 1L;
            uint32_t l_1128 = 1UL;
            uint8_t l_1154 = 0x01L;
            uint8_t l_1324[7][2] = {{0x07L,0x02L},{0x02L,0x07L},{0x02L,0x02L},{0x07L,0x02L},{0x02L,0x07L},{0x02L,0x02L},{0x07L,0x02L}};
            int i, j, k;
            l_1043[1] = p_15;
            l_1063 ^= (safe_rshift_func_int16_t_s_u((l_1062 &= (~(((g_1050 = l_1047) != l_1053[2]) | (((l_1030 & (((l_1060 = (safe_lshift_func_uint32_t_u_u((~l_1030), ((((*g_733) = (*g_272)) , (((*g_733) &= (0x4F4BCEF2991889A6LL ^ (((l_1030 > ((safe_unary_minus_func_int8_t_s((l_1058 & (l_17 == (*g_43))))) > (*l_17))) , (*g_44)) , 0x2832093F2D0B4B07LL))) || (**g_605))) == 0xE84CA0E3L)))) < 0xAFL) != (**g_926))) < 2L) | l_1030)))), (**g_926)));
            if ((*p_15))
            { /* block id: 518 */
                int32_t l_1070[6][2][7] = {{{0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL},{0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL}},{{0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL},{0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL}},{{0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL},{0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL}},{{0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL},{0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL}},{{0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL},{0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL}},{{0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL,0x78B735CEL},{0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL,0xE03A803EL,0x28BA5F8DL}}};
                uint16_t l_1106[3][2];
                int32_t l_1117 = 1L;
                uint16_t l_1123 = 65533UL;
                int16_t l_1127 = 1L;
                uint32_t l_1247[10][6][4] = {{{2UL,0x8D1B8A26L,0x8D1B8A26L,2UL},{0x8D1B8A26L,2UL,0x8D1B8A26L,0x8D1B8A26L},{2UL,2UL,0x99D4994BL,2UL},{2UL,0x8D1B8A26L,0x8D1B8A26L,2UL},{0x8D1B8A26L,2UL,0x8D1B8A26L,0x8D1B8A26L},{2UL,2UL,0x99D4994BL,2UL}},{{2UL,0x8D1B8A26L,0x8D1B8A26L,2UL},{0x8D1B8A26L,2UL,0x8D1B8A26L,0x8D1B8A26L},{2UL,2UL,0x99D4994BL,2UL},{2UL,0x8D1B8A26L,0x8D1B8A26L,2UL},{0x8D1B8A26L,2UL,0x8D1B8A26L,0x8D1B8A26L},{2UL,2UL,0x99D4994BL,2UL}},{{0x8D1B8A26L,0x99D4994BL,0x99D4994BL,0x8D1B8A26L},{0x99D4994BL,0x8D1B8A26L,0x99D4994BL,0x99D4994BL},{0x8D1B8A26L,0x8D1B8A26L,2UL,0x8D1B8A26L},{0x8D1B8A26L,0x99D4994BL,0x99D4994BL,0x8D1B8A26L},{0x99D4994BL,0x8D1B8A26L,0x99D4994BL,0x99D4994BL},{0x8D1B8A26L,0x8D1B8A26L,2UL,0x8D1B8A26L}},{{0x8D1B8A26L,0x99D4994BL,0x99D4994BL,0x8D1B8A26L},{0x99D4994BL,0x8D1B8A26L,0x99D4994BL,0x99D4994BL},{0x8D1B8A26L,0x8D1B8A26L,2UL,0x8D1B8A26L},{0x8D1B8A26L,0x99D4994BL,0x99D4994BL,0x8D1B8A26L},{0x99D4994BL,0x8D1B8A26L,0x99D4994BL,0x99D4994BL},{0x8D1B8A26L,0x8D1B8A26L,2UL,0x8D1B8A26L}},{{0x8D1B8A26L,0x99D4994BL,0x99D4994BL,0x8D1B8A26L},{0x99D4994BL,0x8D1B8A26L,0x99D4994BL,0x99D4994BL},{0x8D1B8A26L,0x8D1B8A26L,2UL,0x8D1B8A26L},{0x8D1B8A26L,0x99D4994BL,0x99D4994BL,0x8D1B8A26L},{0x99D4994BL,0x8D1B8A26L,0x99D4994BL,0x99D4994BL},{0x8D1B8A26L,0x8D1B8A26L,2UL,0x8D1B8A26L}},{{0x8D1B8A26L,0x99D4994BL,0x99D4994BL,0x8D1B8A26L},{0x99D4994BL,0x8D1B8A26L,0x99D4994BL,0x99D4994BL},{0x8D1B8A26L,0x8D1B8A26L,2UL,0x8D1B8A26L},{0x8D1B8A26L,0x99D4994BL,0x99D4994BL,0x8D1B8A26L},{0x99D4994BL,0x8D1B8A26L,0x99D4994BL,0x99D4994BL},{0x8D1B8A26L,0x8D1B8A26L,2UL,0x8D1B8A26L}},{{0x8D1B8A26L,0x99D4994BL,0x99D4994BL,0x8D1B8A26L},{0x99D4994BL,0x8D1B8A26L,0x99D4994BL,0x99D4994BL},{0x8D1B8A26L,0x8D1B8A26L,2UL,0x8D1B8A26L},{0x8D1B8A26L,0x99D4994BL,0x99D4994BL,0x8D1B8A26L},{0x99D4994BL,0x8D1B8A26L,0x99D4994BL,0x99D4994BL},{0x8D1B8A26L,0x8D1B8A26L,2UL,0x8D1B8A26L}},{{0x8D1B8A26L,0x99D4994BL,0x99D4994BL,0x8D1B8A26L},{0x99D4994BL,0x8D1B8A26L,0x99D4994BL,0x99D4994BL},{0x8D1B8A26L,0x8D1B8A26L,2UL,0x8D1B8A26L},{0x8D1B8A26L,0x99D4994BL,0x99D4994BL,0x8D1B8A26L},{0x99D4994BL,0x8D1B8A26L,0x99D4994BL,0x99D4994BL},{0x8D1B8A26L,0x8D1B8A26L,2UL,0x8D1B8A26L}},{{0x8D1B8A26L,0x99D4994BL,0x99D4994BL,0x8D1B8A26L},{0x99D4994BL,0x8D1B8A26L,0x99D4994BL,0x99D4994BL},{0x8D1B8A26L,0x8D1B8A26L,2UL,0x8D1B8A26L},{0x8D1B8A26L,0x99D4994BL,0x99D4994BL,0x8D1B8A26L},{0x99D4994BL,0x8D1B8A26L,0x99D4994BL,0x99D4994BL},{0x8D1B8A26L,0x8D1B8A26L,2UL,0x8D1B8A26L}},{{0x8D1B8A26L,0x99D4994BL,0x99D4994BL,0x8D1B8A26L},{0x99D4994BL,0x8D1B8A26L,0x99D4994BL,0x99D4994BL},{0x8D1B8A26L,0x8D1B8A26L,2UL,0x8D1B8A26L},{0x8D1B8A26L,0x99D4994BL,0x99D4994BL,0x8D1B8A26L},{0x99D4994BL,0x8D1B8A26L,0x99D4994BL,0x99D4994BL},{0x8D1B8A26L,0x8D1B8A26L,2UL,0x99D4994BL}}};
                int16_t l_1275 = (-1L);
                int32_t **l_1277 = &g_214[5];
                int i, j, k;
                for (i = 0; i < 3; i++)
                {
                    for (j = 0; j < 2; j++)
                        l_1106[i][j] = 0x4D90L;
                }
                (*l_19) = (void*)0;
                (*g_733) |= (l_1062 ^ ((((l_17 == p_15) & ((*****l_1047) = ((safe_div_func_int8_t_s_s(((safe_add_func_uint16_t_u_u(((((*g_657) = (18446744073709551615UL != 0xE36D399545DA1705LL)) && (g_172 , (safe_add_func_int64_t_s_s(((void*)0 == (*g_1050)), l_1070[0][0][1])))) || (*g_657)), l_1070[1][0][5])) ^ (*l_17)), 253UL)) , (****g_1051)))) | 0L) , l_1070[5][1][0]));
                for (g_659 = (-7); (g_659 >= 29); g_659++)
                { /* block id: 525 */
                    uint32_t l_1075 = 18446744073709551611UL;
                    uint64_t *l_1080 = (void*)0;
                    uint64_t *l_1081 = (void*)0;
                    uint64_t *l_1082 = &l_1026;
                    uint32_t l_1088 = 0xF3ABAE61L;
                    int32_t *l_1113 = &l_1062;
                    int32_t l_1115 = 0x293BEB7CL;
                    int32_t l_1116[5][1] = {{0x4D048FBBL},{0L},{0x4D048FBBL},{0L},{0x4D048FBBL}};
                    int32_t *****l_1133 = (void*)0;
                    int i, j;
                    l_1027 = (((****g_1051) = (safe_sub_func_int8_t_s_s((**g_970), l_1075))) , (l_1070[0][0][1] && ((safe_mod_func_uint64_t_u_u(((((*l_1082) = ((*l_1042) = (g_185 , l_1062))) && (l_1075 , ((*g_657) = ((!(l_1063 = ((((-8L) == l_1070[5][0][0]) || (*g_971)) <= 4294967295UL))) == 0xF4682252A33C53D7LL)))) ^ g_518), l_1084)) <= (*l_17))));
                    if ((((void*)0 == l_1085) , (!(0x7DL && (**g_970)))))
                    { /* block id: 532 */
                        int32_t l_1098 = 6L;
                        const int32_t **l_1107 = &l_1043[2];
                        l_1060 = (l_1088 , ((l_1070[1][1][5] = ((((*g_927) = ((((safe_lshift_func_uint64_t_u_s(((safe_sub_func_int64_t_s_s((safe_mul_func_uint64_t_u_u(((**l_1086)--), ((l_1098 == (0xD0FB5629BE0574A1LL && ((((safe_sub_func_int16_t_s_s((l_1075 > ((65528UL > (safe_add_func_uint64_t_u_u((((&l_1095 == l_1080) >= (((*p_15) <= 0L) , 0x526B434EL)) <= (*g_820)), l_1060))) , (*p_15))), 0xB019L)) <= 4UL) , (*g_927)) & l_1063))) < l_1063))), l_1088)) < l_1105), l_1062)) != (*g_927)) <= 65533UL) , l_1106[1][0])) <= l_1098) > l_1106[2][1])) <= 0x4837L));
                        (*l_1107) = p_15;
                        l_1060 &= (+((safe_rshift_func_int8_t_s_u((((*g_657) = ((safe_mul_func_uint32_t_u_u(l_1106[1][0], (5L < ((((((*g_43) = (*l_19)) == (l_1106[2][0] , (g_1114 = (g_214[6] = l_1113)))) || (l_1098 = (*l_1113))) ^ ((*l_1113) < (*g_927))) != (l_1062 & (*l_1113)))))) | l_1063)) & (*l_1113)), 5)) & (*l_1113)));
                    }
                    else
                    { /* block id: 544 */
                        int32_t l_1118 = 0xF3D98758L;
                        int32_t l_1119 = (-10L);
                        int32_t l_1120 = 0x1E69BC9AL;
                        int32_t l_1121[10][8][3] = {{{0x603F4ACEL,0xDEE2F390L,0xDEE2F390L},{(-1L),(-6L),0xD871D5BCL},{0xF583F769L,0x6D89D08EL,0xA79232AAL},{1L,0xCFE2679AL,0x66F20A3EL},{0x21A47EA1L,(-1L),1L},{(-1L),0xCFE2679AL,0x10CD16EBL},{0L,0x6D89D08EL,0x52048F68L},{(-1L),(-6L),(-1L)}},{{0L,0xDEE2F390L,0x27E14EB7L},{8L,1L,1L},{(-1L),0L,0x10CD16EBL},{3L,0xEDFBB89BL,(-5L)},{0xA79232AAL,0x316B7DDFL,1L},{0L,0x10CD16EBL,0xD3B4E9C7L},{0x8467E388L,0x21A47EA1L,0xF3D519F1L},{0x8B5B0535L,0L,0xDEE2F390L}},{{0L,1L,8L},{(-1L),1L,(-1L)},{(-9L),0x10CD16EBL,0L},{1L,0x065F65A2L,0xF414A4ABL},{1L,0L,0xCFE2679AL},{0xF3D519F1L,1L,(-1L)},{0xF583F769L,0x77015EF2L,0x034648D8L},{(-1L),0xDEE2F390L,0x134860E5L}},{{(-1L),4L,0xF3D519F1L},{0xF583F769L,5L,0L},{0xF3D519F1L,0xEB3A0339L,0x66F20A3EL},{1L,6L,(-1L)},{1L,0xCFE2679AL,0L},{(-9L),(-1L),1L},{(-1L),(-10L),0L},{0L,1L,0x27E14EB7L}},{{0x8B5B0535L,0x77015EF2L,1L},{0x8467E388L,0L,0L},{0L,(-9L),1L},{0xA79232AAL,1L,0L},{3L,0x02542954L,0xD3B4E9C7L},{(-1L),1L,(-4L)},{8L,0L,0x134860E5L},{0L,0L,(-10L)}},{{(-1L),1L,5L},{0L,0x02542954L,0L},{(-1L),0x316B7DDFL,0xB9CC2912L},{0x21A47EA1L,0L,0L},{1L,0x7CD00665L,5L},{0xF583F769L,0xF3D519F1L,(-10L)},{(-1L),1L,0x134860E5L},{0x603F4ACEL,(-6L),(-4L)}},{{0xF441D0B8L,5L,0xD3B4E9C7L},{1L,0x7CB97611L,0L},{1L,0xF414A4ABL,1L},{0xDEE2F390L,0xEB3A0339L,0L},{1L,0x6D89D08EL,1L},{0x906F6EE9L,(-10L),0x27E14EB7L},{0L,1L,0L},{0x8B5B0535L,0xF3D519F1L,1L}},{{(-4L),1L,0L},{0L,0xEDFBB89BL,(-1L)},{0x7CD00665L,1L,0x66F20A3EL},{0L,3L,0L},{(-1L),1L,0xF3D519F1L},{1L,4L,(-8L)},{(-2L),4L,0x0A0C72D0L},{0L,0x8B5B0535L,0x316B7DDFL}},{{(-4L),0L,(-1L)},{9L,0x034648D8L,0L},{0x8B5B0535L,0x8467E388L,0x1DCDBC7DL},{0x134860E5L,(-1L),(-5L)},{0x10CD16EBL,(-1L),6L},{0xCEAC60F3L,0x07C8F18BL,(-1L)},{0x8CC8BECBL,0xB9CC2912L,(-1L)},{0x768E9752L,0x065F65A2L,0x6D89D08EL}},{{0x134860E5L,0x906F6EE9L,(-9L)},{1L,0L,(-6L)},{0x07C8F18BL,3L,1L},{(-9L),(-1L),0x8B5B0535L},{(-1L),(-1L),1L},{(-2L),6L,(-2L)},{0L,(-1L),1L},{1L,5L,1L}}};
                        int32_t *****l_1134 = &l_1132;
                        int i, j, k;
                        --l_1123;
                        l_1128--;
                        l_1134 = (l_1133 = l_1131);
                        if ((*p_15))
                            break;
                    }
                }
                for (l_1062 = 3; (l_1062 >= 0); l_1062 -= 1)
                { /* block id: 554 */
                    int8_t l_1152 = 7L;
                    const uint8_t l_1161 = 0x40L;
                    int32_t l_1171 = 1L;
                    int32_t l_1173 = 0xF1BBBF06L;
                    const int32_t * const *l_1220 = &g_208;
                    const int32_t * const * const *l_1219[9][8][3] = {{{&l_1220,(void*)0,&l_1220},{&l_1220,&l_1220,&l_1220},{&l_1220,(void*)0,&l_1220},{&l_1220,(void*)0,&l_1220},{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,(void*)0},{&l_1220,&l_1220,&l_1220}},{{(void*)0,(void*)0,&l_1220},{&l_1220,&l_1220,(void*)0},{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,(void*)0},{(void*)0,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220},{(void*)0,&l_1220,&l_1220}},{{&l_1220,&l_1220,&l_1220},{(void*)0,&l_1220,&l_1220},{&l_1220,&l_1220,(void*)0},{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,(void*)0},{&l_1220,(void*)0,&l_1220},{&l_1220,&l_1220,&l_1220},{&l_1220,(void*)0,(void*)0}},{{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220},{(void*)0,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220},{(void*)0,&l_1220,&l_1220},{(void*)0,&l_1220,&l_1220},{&l_1220,(void*)0,&l_1220}},{{&l_1220,&l_1220,&l_1220},{&l_1220,(void*)0,&l_1220},{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,(void*)0},{(void*)0,&l_1220,(void*)0},{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220}},{{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220},{(void*)0,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220},{&l_1220,(void*)0,&l_1220},{&l_1220,&l_1220,&l_1220},{&l_1220,(void*)0,&l_1220}},{{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220},{(void*)0,&l_1220,&l_1220},{&l_1220,(void*)0,(void*)0},{&l_1220,(void*)0,&l_1220},{&l_1220,&l_1220,&l_1220},{&l_1220,(void*)0,&l_1220},{&l_1220,&l_1220,&l_1220}},{{(void*)0,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220},{(void*)0,&l_1220,&l_1220},{(void*)0,(void*)0,(void*)0},{&l_1220,&l_1220,&l_1220}},{{&l_1220,&l_1220,&l_1220},{&l_1220,(void*)0,&l_1220},{&l_1220,&l_1220,(void*)0},{&l_1220,&l_1220,(void*)0},{&l_1220,&l_1220,(void*)0},{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220},{&l_1220,&l_1220,&l_1220}}};
                    const int32_t * const * const **l_1218 = &l_1219[1][3][0];
                    const int32_t * const * const ***l_1217[6][8][2] = {{{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218}},{{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218}},{{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218}},{{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218}},{{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218}},{{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218},{&l_1218,&l_1218}}};
                    int i, j, k;
                    for (g_172 = 0; (g_172 <= 3); g_172 += 1)
                    { /* block id: 557 */
                        int8_t l_1137 = (-1L);
                        int32_t l_1138 = 0x8717932DL;
                        int32_t l_1139 = 1L;
                        uint16_t *l_1148[8] = {&g_124,&g_124,&g_124,&g_124,&g_124,&g_124,&g_124,&g_124};
                        int16_t ***l_1150 = &g_164[2];
                        int16_t ****l_1149[7] = {&l_1150,&l_1150,&l_1150,&l_1150,&l_1150,&l_1150,&l_1150};
                        uint8_t l_1151 = 8UL;
                        int32_t l_1153 = 9L;
                        uint32_t *l_1172 = &l_1084;
                        int i;
                        l_1154 = ((((safe_lshift_func_int32_t_s_u((l_1138 = (l_1137 = (*g_733))), l_1139)) | (l_1153 = (safe_mod_func_uint32_t_u_u((((((((+(safe_lshift_func_int64_t_s_u((safe_sub_func_uint64_t_u_u((l_1147 != l_1148[3]), (-1L))), 47))) | ((((void*)0 != l_1149[2]) , l_1043[g_172]) == l_1043[l_1062])) && 4UL) < l_1117) == 0xA7L) > 0xA7DAC7CD16755DCALL) | l_1151), l_1152)))) , 18446744073709551615UL) , (*p_15));
                        l_1173 ^= ((((((safe_div_func_uint32_t_u_u((l_1062 , (safe_mul_func_int64_t_s_s(l_1070[0][0][1], (0xE8763D08L & ((*l_1172) = ((((safe_add_func_int16_t_s_s(l_1161, ((safe_add_func_int16_t_s_s(0xB555L, (g_1164 != ((safe_lshift_func_uint16_t_u_s(((*p_15) >= (safe_add_func_int32_t_s_s(((l_1152 > (safe_mul_func_uint8_t_u_u(((l_1171 == l_1070[0][0][1]) != l_1060), l_1152))) ^ 0UL), (*p_15)))), 4)) , (void*)0)))) < l_1152))) == (*g_971)) == (-8L)) < 2UL)))))), 0x2B949F5DL)) && (*g_733)) >= l_1171) != 0x7FL) , g_689[0]) > 0L);
                    }
                    if ((l_1106[1][1] & (*g_971)))
                    { /* block id: 565 */
                        const uint16_t l_1180 = 0UL;
                        int32_t l_1186[7];
                        int i;
                        for (i = 0; i < 7; i++)
                            l_1186[i] = 0xDD2E9333L;
                        l_1186[3] ^= (safe_div_func_uint64_t_u_u(l_1117, ((*g_657) = (safe_mul_func_uint8_t_u_u(((**g_129) = (l_1062 , (safe_mod_func_uint8_t_u_u(l_1180, ((g_185 = 0xB2L) & ((l_1180 | (*g_927)) < (safe_rshift_func_uint64_t_u_s((65529UL > l_1062), 58)))))))), (~(0x5EC6802EL <= l_1180)))))));
                        (*g_1189) = g_1187;
                        (*g_1187) = (*p_15);
                    }
                    else
                    { /* block id: 572 */
                        int32_t ****l_1192 = &g_339;
                        int32_t l_1199 = 9L;
                        l_1199 = (((safe_mod_func_int8_t_s_s((l_1062 & (l_1173 ^= (**g_970))), (****g_1051))) , ((g_174 , ((void*)0 == l_1192)) ^ ((safe_mul_func_int16_t_s_s(1L, (safe_div_func_uint32_t_u_u(l_1030, ((safe_rshift_func_int32_t_s_s((((5L ^ l_1106[1][1]) & 0x90D4L) , (*p_15)), 28)) , 0xC6FD22A8L))))) >= (*g_927)))) && l_1127);
                        l_1060 = ((safe_lshift_func_int16_t_s_u((!(***g_1052)), 5)) & (((l_1221 = (((safe_mod_func_uint32_t_u_u((+(0xB5L > (l_1173 = (((((*g_927) && (+(((safe_div_func_int32_t_s_s((*p_15), (safe_rshift_func_uint8_t_u_s((safe_add_func_uint16_t_u_u(((*g_926) != (void*)0), 1L)), 3)))) , ((safe_sub_func_int8_t_s_s((safe_rshift_func_int16_t_s_s(((l_1070[2][1][3] , 0xDC7F8D685BB888F7LL) <= 0x2BFF94318DF92C27LL), 1)), (**g_970))) < 0x7B173EE184E3031ELL)) == 0xE0DE4C5CL))) > (**g_926)) & l_1161) || l_1070[0][0][1])))), 0x8A6D10BCL)) , 0x9EB1L) , l_1217[4][3][1])) != &l_1192) != 4294967291UL));
                    }
                    (*g_1187) = ((((safe_add_func_int8_t_s_s((g_185 = l_1127), (((*g_926) = ((safe_lshift_func_int64_t_s_u((&g_522[0] == (l_1128 , ((((safe_mod_func_uint8_t_u_u(((*g_820) >= ((0xFFD1L == (!(*g_927))) | ((255UL == ((safe_mod_func_uint16_t_u_u((safe_div_func_int16_t_s_s(((safe_mul_func_int8_t_s_s(((!(safe_div_func_uint8_t_u_u((safe_mul_func_int8_t_s_s(((safe_mod_func_int64_t_s_s(((0xFCEBL && (l_1070[1][1][5] = ((((((l_1062 || l_1106[1][0]) & 7UL) <= l_1246[0]) , (**g_926)) && l_1122) , 0x710DL))) == (****g_1051)), g_142)) && 4294967294UL), l_1154)), l_1247[7][0][1]))) , 8L), (*****g_1050))) | l_1127), (*g_927))), 0xA19CL)) && 0x8DA639D4A57AD55CLL)) | 0L))), l_1095)) ^ l_1248) || l_1106[1][0]) , (void*)0))), l_1247[9][3][1])) , &l_1248)) != (void*)0))) >= (*l_17)) , (*p_15)) & l_1249);
                    for (l_1063 = 0; (l_1063 <= 0); l_1063 += 1)
                    { /* block id: 585 */
                        uint32_t l_1250 = 4294967286UL;
                        int64_t * const ***l_1272 = (void*)0;
                        int64_t * const ***l_1273 = (void*)0;
                        int64_t * const ***l_1274 = &g_1270;
                        const int32_t *l_1276[5];
                        int i, j;
                        for (i = 0; i < 5; i++)
                            l_1276[i] = &g_689[0];
                        --l_1250;
                        l_1070[0][0][1] = 1L;
                        l_1276[1] = p_15;
                        (***l_1131) = l_1277;
                    }
                }
            }
            else
            { /* block id: 593 */
                int32_t l_1294 = 0x43559500L;
                int32_t l_1299 = 0xA614727FL;
                uint8_t ***l_1301 = &g_129;
                for (l_1154 = 0; (l_1154 <= 6); l_1154 += 1)
                { /* block id: 596 */
                    uint8_t ** const *l_1300 = &g_129;
                    int i;
                    if ((((safe_sub_func_int16_t_s_s((safe_mul_func_uint32_t_u_u((((safe_mod_func_int16_t_s_s((safe_div_func_int32_t_s_s(((l_1126[l_1154] , (**g_926)) , ((1L ^ ((((((((((safe_sub_func_uint32_t_u_u(((*g_1114) >= ((**g_605) > (((safe_mul_func_uint64_t_u_u(((((safe_mod_func_uint16_t_u_u((*g_927), (l_1294 ^= l_1126[l_1154]))) || ((safe_div_func_int16_t_s_s(0xB87EL, (safe_mod_func_int16_t_s_s(((((l_1294 != l_1126[l_1154]) == l_1060) & 0xFE221002L) != l_1122), l_1126[l_1154])))) == l_1126[l_1154])) < l_1299) & l_1126[l_1154]), (*l_17))) , 0x1D69L) <= (*****l_1131)))), l_1154)) , l_1294) & (*g_927)) , l_1299) <= (*l_17)) >= l_1063) , (**g_1271)) || 0xDC3D84F41D493073LL) , l_1300) == l_1301)) <= l_1299)), l_1062)), 65533UL)) != l_1126[l_1154]) , l_1294), (****l_1132))), l_1126[l_1154])) || (*g_971)) < l_1095))
                    { /* block id: 598 */
                        return l_1095;
                    }
                    else
                    { /* block id: 600 */
                        int64_t l_1308 = 0x27799FE84BCD17E0LL;
                        (*l_19) = (void*)0;
                        (*g_1114) ^= (safe_lshift_func_int16_t_s_s((safe_add_func_uint64_t_u_u((0x8602B690A5BFD3EALL <= (safe_add_func_uint8_t_u_u((0x2ED7A69FA0A3CF36LL <= l_1308), ((safe_sub_func_int16_t_s_s((safe_rshift_func_uint32_t_u_u((((l_1126[l_1154] != ((safe_rshift_func_int64_t_s_u(l_1308, ((safe_mul_func_int64_t_s_s(((((safe_add_func_int32_t_s_s((((--(*g_927)) , (safe_mod_func_int8_t_s_s(l_1299, ((0UL | (l_1323 != (*l_1301))) | (-9L))))) , 0x2105AAA3L), (*p_15))) > 0x78CAL) && 0xDBFC261142D81F6CLL) , (***g_1270)), l_1154)) == (**g_129)))) > l_1324[0][1])) == 0x6DA4L) | l_1308), 6)), l_1126[l_1154])) || 6UL)))), 0x73F7FDF7279437E2LL)), 13));
                    }
                }
                for (l_1128 = 29; (l_1128 >= 25); l_1128 = safe_sub_func_uint32_t_u_u(l_1128, 4))
                { /* block id: 608 */
                    for (g_142 = 0; (g_142 == 6); ++g_142)
                    { /* block id: 611 */
                        return (**g_605);
                    }
                }
            }
        }
    }
    else
    { /* block id: 617 */
        int64_t l_1332 = 0x683190B3ACED81A3LL;
        const int32_t ***l_1333 = (void*)0;
        int32_t l_1351[1];
        const uint16_t *l_1430[3][9] = {{&g_160,(void*)0,&g_160,(void*)0,&g_160,&g_160,&g_124,&g_124,&g_160},{&g_160,(void*)0,&g_160,(void*)0,&g_160,&g_160,&g_124,&g_124,&g_160},{&g_160,(void*)0,&g_160,(void*)0,&g_160,&g_160,&g_124,&g_124,&g_160}};
        const uint16_t **l_1429 = &l_1430[0][4];
        int64_t l_1445 = 0xC7432F2CCAC51683LL;
        int16_t l_1485 = 0x4BA5L;
        uint32_t l_1489 = 4294967292UL;
        int i, j;
        for (i = 0; i < 1; i++)
            l_1351[i] = 0xBA32AACAL;
        for (g_124 = 13; (g_124 == 51); g_124++)
        { /* block id: 620 */
            const int8_t l_1331 = 1L;
            int16_t *l_1347 = &g_340;
            int32_t l_1349 = 1L;
            int32_t l_1350 = 6L;
            int32_t l_1373 = 0x04EB5FB9L;
            int32_t l_1374 = 0xE0E2159AL;
            uint16_t l_1399 = 8UL;
            l_1351[0] ^= ((*g_1114) = ((l_1350 = (l_1331 , (l_1349 |= (((**g_970) | l_1332) ^ ((0L != (((void*)0 != l_1333) , (safe_unary_minus_func_int64_t_s(0x09E6A435A14188AELL)))) && (safe_mod_func_uint8_t_u_u((safe_rshift_func_uint64_t_u_u((safe_lshift_func_int64_t_s_s((((((safe_mul_func_int16_t_s_s((safe_add_func_int16_t_s_s(((*l_1347) &= (((safe_sub_func_uint64_t_u_u(0x057EF32CA005A305LL, l_1331)) , (***g_1051)) != (void*)0)), (*g_927))), g_1348)) & l_1331) , 0x431D6AC13D4A2B3CLL) != 4L) , 0xD169BFE27B95E812LL), 34)), 34)), 1L))))))) | l_1331));
            for (g_174 = 0; (g_174 != 56); g_174 = safe_add_func_int32_t_s_s(g_174, 1))
            { /* block id: 628 */
                int32_t **l_1354 = &l_17;
                uint32_t **l_1376 = &g_606[1][9];
                uint32_t ** const *l_1375 = &l_1376;
                (*l_1354) = ((*g_43) = &l_1351[0]);
                for (l_1349 = 10; (l_1349 > 2); l_1349 = safe_sub_func_int32_t_s_s(l_1349, 1))
                { /* block id: 633 */
                    uint16_t l_1371 = 0UL;
                    int64_t *** const l_1411[2] = {&g_880,&g_880};
                    int i;
                    if ((0x1AF5L >= (**l_1354)))
                    { /* block id: 634 */
                        uint32_t l_1372 = 4294967289UL;
                        l_1374 &= (((**g_605) < (safe_add_func_uint64_t_u_u((((safe_lshift_func_uint16_t_u_s((0x0AB3L ^ (safe_mod_func_uint16_t_u_u((**g_926), l_1350))), (safe_mul_func_uint32_t_u_u((((*p_15) ^ (safe_sub_func_int8_t_s_s(((l_1351[0] |= (*g_657)) , (((((***g_339) = (safe_mul_func_uint16_t_u_u((**l_1354), (**l_1354)))) < ((*p_15) > l_1371)) ^ 0xCBL) || l_1372)), g_571))) || (****g_1051)), 2UL)))) == g_340) | l_1372), 8UL))) , l_1373);
                        (*g_1377) = l_1375;
                    }
                    else
                    { /* block id: 639 */
                        (**l_1354) &= (-1L);
                        if (l_1373)
                            continue;
                        if (l_1371)
                            continue;
                        (*g_733) = 0x661D1568L;
                    }
                    for (g_185 = 0; (g_185 >= 18); ++g_185)
                    { /* block id: 647 */
                        const int32_t *l_1381 = (void*)0;
                        uint8_t *l_1396 = &l_1058;
                        int32_t ***l_1400 = &l_1354;
                        int32_t ****l_1401 = &l_1400;
                        int64_t ***l_1410[8];
                        int64_t ****l_1409 = &l_1410[4];
                        int i;
                        for (i = 0; i < 8; i++)
                            l_1410[i] = (void*)0;
                        l_1381 = p_15;
                        l_1373 ^= (((safe_mul_func_int16_t_s_s(((*l_1347) &= (safe_rshift_func_uint8_t_u_u((safe_lshift_func_uint16_t_u_u(((((safe_lshift_func_uint64_t_u_s(0x371DBE6346A3BA58LL, (safe_mod_func_uint64_t_u_u(l_1374, ((safe_lshift_func_uint8_t_u_u(((*l_1396) = ((*****g_1050)++)), l_1371)) , ((l_1399 > (((*l_1401) = l_1400) != (((0x3F717CB919939C9BLL && (-1L)) | (!(safe_div_func_uint32_t_u_u(((safe_div_func_int64_t_s_s((((*l_1409) = &g_880) == (((**l_1354) ^ (*l_1381)) , l_1411[1])), g_753)) , l_1331), g_1412)))) , &g_1189))) | g_126[0][0])))))) <= 0L) > g_236) > g_1413), 2)), 6))), (**l_1354))) >= (**l_1354)) ^ (**l_1354));
                        if ((****l_1401))
                            break;
                        return l_1349;
                    }
                }
            }
        }
        if (((*g_1114) = (*p_15)))
        { /* block id: 662 */
            int8_t l_1414[10] = {(-7L),(-1L),(-7L),0L,0L,(-7L),(-1L),(-7L),0L,0L};
            int i;
            return l_1414[7];
        }
        else
        { /* block id: 664 */
            int32_t *l_1418 = &l_1351[0];
            uint32_t l_1443 = 0x3C9FFDB6L;
            uint64_t *l_1461 = &g_174;
            uint64_t **l_1460 = &l_1461;
            uint64_t ** const *l_1459[4] = {&l_1460,&l_1460,&l_1460,&l_1460};
            int16_t * const l_1466 = &g_67;
            int64_t l_1486 = 1L;
            int16_t l_1488 = (-1L);
            int i;
lbl_1470:
            if ((*g_1187))
            { /* block id: 665 */
                int32_t * const l_1415 = &g_71;
                (*g_1417) = l_1415;
                (*g_43) = l_1418;
            }
            else
            { /* block id: 668 */
                for (g_1348 = 5; (g_1348 >= 51); g_1348 = safe_add_func_uint64_t_u_u(g_1348, 4))
                { /* block id: 671 */
                    (*g_1114) &= 1L;
                    return l_1421;
                }
            }
            if ((*p_15))
            { /* block id: 676 */
                int32_t **** const l_1436[4] = {&g_339,&g_339,&g_339,&g_339};
                int i;
                if (((safe_lshift_func_uint16_t_u_u((**g_926), 0)) ^ 0UL))
                { /* block id: 677 */
                    uint64_t l_1428 = 0x436464E6294DBB46LL;
                    const uint32_t *l_1442 = &g_502;
                    const uint32_t **l_1441 = &l_1442;
                    const uint32_t ***l_1440 = &l_1441;
                    int8_t *l_1444 = &g_185;
                    int32_t l_1465 = 1L;
                    (**g_339) = (void*)0;
                    (*g_1114) &= (safe_div_func_int8_t_s_s((((safe_unary_minus_func_uint64_t_u((!(*l_1418)))) && (l_1428 <= ((l_1429 == (void*)0) , ((safe_sub_func_int16_t_s_s(((--(***g_1052)) | (~(**g_970))), (l_1436[0] == (*l_1221)))) & ((safe_unary_minus_func_int8_t_s(((*l_1444) = ((safe_lshift_func_int64_t_s_u(((l_1440 == (l_1443 , (void*)0)) , 0x5D30ACB14AB147BDLL), g_259)) ^ 0x5D4EF44AL)))) == (*l_1418)))))) | l_1428), l_1445));
                    for (g_174 = 0; (g_174 > 7); ++g_174)
                    { /* block id: 684 */
                        uint16_t l_1448 = 65533UL;
                        l_1448--;
                        (*l_1418) = ((safe_lshift_func_uint16_t_u_u((**g_926), (safe_mul_func_int64_t_s_s((*l_1418), (safe_div_func_uint16_t_u_u(((safe_sub_func_uint64_t_u_u((((&g_755 == l_1459[3]) == (((safe_lshift_func_int32_t_s_s((0x1E6B4C93L > (l_1464[2][4] != ((((l_1465 &= l_1428) && l_1351[0]) && (*g_820)) , l_1466))), 29)) <= l_1428) , (*l_1418))) ^ (*p_15)), g_659)) >= (*l_1418)), 0x5BAAL)))))) >= 4294967295UL);
                    }
                }
                else
                { /* block id: 689 */
                    (*l_1418) = (safe_lshift_func_int64_t_s_u(((l_1469 , (*l_1221)) != (void*)0), g_71));
                }
            }
            else
            { /* block id: 692 */
                int32_t l_1471 = 0x80FF54F0L;
                int32_t l_1472[5][5][8] = {{{0x7F013411L,(-1L),0x6F5EF862L,3L,(-1L),0L,1L,0x072D082AL},{(-1L),0L,1L,0x072D082AL,0x03A45461L,0x4C922086L,0L,0x3BAE673BL},{0x5AF9BC31L,0L,0x4C922086L,0x9A644AF8L,0x4E94C648L,5L,0xF6C8E0DDL,0xC8836C7BL},{(-1L),(-1L),(-3L),0x1221E049L,0x5B6A76BFL,0x2F98D144L,0L,0x4C922086L},{(-2L),0xF72ADD6DL,0x7F013411L,0xBFF6F985L,0xAF5ED5CEL,0L,0x5AF9BC31L,(-1L)}},{{0xA0EC5744L,0x1221E049L,(-1L),2L,5L,0x5B6A76BFL,0x5B6A76BFL,5L},{0x4E94C648L,0L,0L,0x4E94C648L,0L,4L,9L,0x9A644AF8L},{0xC8836C7BL,(-2L),0L,2L,1L,2L,0x072D082AL,(-3L)},{1L,(-2L),0xF6C8E0DDL,0L,0x569032C0L,4L,0x7F013411L,8L},{0xA9DFFA11L,0L,0x1123484FL,0xFA3ED000L,0L,0x5B6A76BFL,0L,(-1L)}},{{0x89CFB117L,0x1221E049L,3L,0x4C922086L,5L,0L,(-1L),0x59DAD390L},{(-3L),0xF72ADD6DL,0L,0L,2L,0x2F98D144L,0xA0EC5744L,0x92028322L},{0x1221E049L,(-1L),2L,0xA0EC5744L,1L,5L,1L,0x2F98D144L},{(-1L),0L,(-3L),0x6F5EF862L,0x3BAE673BL,0x4C922086L,0x569032C0L,1L},{4L,0L,0xA0EC5744L,(-2L),0xA0EC5744L,0L,4L,0xF6C8E0DDL}},{{0xFA3ED000L,(-1L),1L,0x3BAE673BL,0L,(-1L),0x89CFB117L,(-1L)},{(-1L),5L,1L,0x569032C0L,0L,3L,2L,(-2L)},{0xFA3ED000L,0x4E94C648L,0x2F98D144L,(-1L),0xA0EC5744L,0x89CFB117L,0xAF5ED5CEL,0x5B6A76BFL},{5L,1L,(-1L),(-1L),0x59DAD390L,0xFA3ED000L,9L,0x5AF9BC31L},{1L,0x2F98D144L,0x4C922086L,1L,0L,(-1L),0x03A45461L,0L}},{{0L,0x92028322L,1L,4L,0x1221E049L,0xA9DFFA11L,0x89CFB117L,0xF6C8E0DDL},{0x89CFB117L,0x59DAD390L,1L,1L,(-1L),(-1L),1L,0L},{(-3L),(-1L),1L,0x9A644AF8L,0L,0L,0x9A644AF8L,1L},{8L,8L,0xC8836C7BL,1L,0L,0x59DAD390L,0L,0L},{0L,(-3L),0x1123484FL,0x7F013411L,0xFA3ED000L,(-1L),(-10L),0L}}};
                int i, j, k;
                if (g_110)
                    goto lbl_1470;
                --l_1473;
            }
            (*g_1187) = (safe_add_func_int64_t_s_s((l_1351[0] && ((((((*g_657) ^ l_1445) , (*g_927)) ^ (((((safe_mul_func_int8_t_s_s(l_1351[0], ((0L | ((safe_rshift_func_uint8_t_u_s((*l_1418), (*g_971))) ^ ((safe_mod_func_int64_t_s_s((0xC32BL < (*l_1418)), 0x075D192EC3A65EEBLL)) , (**g_926)))) > l_1484[0]))) | l_1485) || (*p_15)) ^ l_1486) == l_1487)) ^ g_592) || 0xFB587E2584020C0ELL)), l_1488));
        }
        ++l_1489;
    }
    l_1514 ^= ((safe_add_func_int64_t_s_s((*g_820), (g_3 > (safe_rshift_func_uint16_t_u_s(0x1A04L, (l_1496 > (safe_sub_func_int32_t_s_s((safe_add_func_uint64_t_u_u((g_1501 == (g_1506 = ((*l_1505) = l_1502))), (g_174 , g_518))), (safe_mul_func_uint8_t_u_u((***g_1052), g_1513)))))))))) | (*g_208));
    (*g_1417) = (((*l_1526) = ((**g_605) >= (safe_mul_func_int64_t_s_s(l_1517, ((safe_unary_minus_func_uint8_t_u((l_1519 == (void*)0))) , ((safe_lshift_func_uint16_t_u_u(g_3, 8)) == (((l_1522 > ((*g_1509) = (((l_1523 != (void*)0) >= (((void*)0 != &l_1223) <= 0x6CL)) & g_67))) & 0x7C844D8EL) & l_1525))))))) , (void*)0);
    return (**g_605);
}


/* ------------------------------------------ */
/* 
 * reads : g_340 g_272 g_71 g_43 g_3 g_755 g_339 g_208 g_209 g_926 g_927 g_689
 * writes: g_340 g_67 g_44 g_43 g_124 g_185
 */
static uint64_t  func_25(int32_t ** const  p_26, uint16_t  p_27, int32_t  p_28)
{ /* block id: 476 */
    int8_t *l_986 = &g_185;
    int32_t l_987[8] = {(-5L),(-5L),(-5L),(-5L),(-5L),(-5L),(-5L),(-5L)};
    int32_t l_992 = 0x59715136L;
    int8_t l_995 = 0x30L;
    uint64_t *l_998 = &g_518;
    uint64_t **l_997 = &l_998;
    uint64_t ***l_999 = &l_997;
    int32_t **l_1011 = (void*)0;
    int32_t **l_1013[2][8] = {{&g_214[5],&g_214[5],(void*)0,&g_214[5],&g_214[5],(void*)0,&g_214[5],&g_214[5]},{&g_44,&g_214[5],&g_44,&g_44,&g_214[5],&g_44,&g_44,&g_214[5]}};
    int32_t ***l_1012 = &l_1013[1][4];
    int32_t ***l_1014 = (void*)0;
    int32_t ***l_1015 = (void*)0;
    int32_t ***l_1016 = (void*)0;
    int32_t **l_1018[9][3];
    int32_t ***l_1017 = &l_1018[0][2];
    int32_t *l_1021[7][6] = {{&l_992,&g_71,&g_689[0],&g_71,&l_992,&g_71},{(void*)0,&g_3,(void*)0,&g_71,(void*)0,&g_3},{&l_992,&g_3,&g_689[0],&g_3,&l_992,&g_3},{(void*)0,&g_71,(void*)0,&g_3,(void*)0,&g_71},{&l_992,&g_71,&g_689[0],&g_71,&l_992,&g_71},{(void*)0,&g_3,(void*)0,&g_71,(void*)0,&g_3},{&l_992,&g_3,&g_689[0],&g_3,&l_992,&g_3}};
    uint32_t l_1022 = 4294967295UL;
    uint8_t l_1023 = 255UL;
    int i, j;
    for (i = 0; i < 9; i++)
    {
        for (j = 0; j < 3; j++)
            l_1018[i][j] = &g_214[2];
    }
    for (g_340 = 19; (g_340 < (-3)); g_340 = safe_sub_func_int8_t_s_s(g_340, 5))
    { /* block id: 479 */
        int16_t l_988 = 0x29F8L;
        if ((*g_272))
            break;
        if (((void*)0 == l_986))
        { /* block id: 481 */
            int32_t *l_989[2][6] = {{&g_3,&l_987[7],&g_3,&l_987[7],&g_3,&l_987[7]},{&g_3,&l_987[7],&g_3,&l_987[7],&g_3,&l_987[7]}};
            int i, j;
            l_987[2] = (l_988 |= l_987[7]);
            for (g_67 = (-17); (g_67 >= (-6)); g_67 = safe_add_func_int16_t_s_s(g_67, 6))
            { /* block id: 486 */
                l_992 |= l_987[7];
            }
        }
        else
        { /* block id: 489 */
            uint32_t l_993 = 0x348E8FB9L;
            int32_t l_994[3][1];
            int i, j;
            for (i = 0; i < 3; i++)
            {
                for (j = 0; j < 1; j++)
                    l_994[i][j] = 0xC7A00363L;
            }
            (*g_43) = (void*)0;
            l_994[1][0] ^= l_993;
            if ((**p_26))
                continue;
            if ((**p_26))
                continue;
        }
        if (l_988)
            continue;
    }
    l_1023 ^= ((((l_987[6] < l_995) || ((~(((*l_999) = l_997) != g_755)) ^ ((safe_add_func_uint16_t_u_u(0x4FC5L, (safe_rshift_func_int8_t_s_s(((*l_986) = (safe_mul_func_int32_t_s_s(((((**g_926) = (safe_unary_minus_func_int16_t_s((((l_995 && (((((safe_mul_func_int16_t_s_s((safe_sub_func_uint32_t_u_u((((*g_339) = l_1011) != ((*l_1017) = ((*l_1012) = (void*)0))), (safe_add_func_int32_t_s_s((l_1022 = (**p_26)), (**p_26))))), p_27)) , p_28) & (-1L)) || 0xB9L) & 0x2E5AL)) & p_28) != (*g_208))))) , p_28) >= 1L), (*g_208)))), 4)))) && p_28))) , 65535UL) & g_689[0]);
    return p_27;
}


/* ------------------------------------------ */
/* 
 * reads : g_142 g_160 g_126 g_67 g_110 g_659 g_174 g_124 g_689 g_129 g_130 g_272 g_71 g_571 g_185 g_518 g_339 g_43 g_44 g_733 g_259 g_159 g_755 g_606 g_172 g_502 g_340 g_662 g_3 g_819 g_209 g_879 g_926 g_927 g_935 g_605 g_970 g_753
 * writes: g_142 g_160 g_67 g_657 g_659 g_124 g_571 g_518 g_662 g_71 g_159 g_126 g_172 g_502 g_174 g_340 g_44 g_689 g_236 g_185 g_110 g_880 g_214
 */
static int32_t  func_29(uint32_t  p_30)
{ /* block id: 297 */
    int64_t *l_656[10] = {&g_236,&g_236,&g_236,(void*)0,&g_236,&g_236,&g_236,&g_236,(void*)0,&g_236};
    int32_t l_660 = 0xFC5D653BL;
    int32_t l_691[9][2] = {{0xB7D033CEL,9L},{0x3D4E6823L,0x6B8D8E19L},{0x3D4E6823L,9L},{0xB7D033CEL,0x3D4E6823L},{9L,0x6B8D8E19L},{0L,0L},{0xB7D033CEL,0L},{0L,0x6B8D8E19L},{9L,0x3D4E6823L}};
    int32_t **l_719 = (void*)0;
    uint32_t **l_741 = &g_606[0][9];
    int8_t l_809 = 0x06L;
    int32_t l_849 = (-2L);
    uint8_t ***l_915 = &g_129;
    uint8_t ****l_916 = &l_915;
    uint8_t * const *l_918 = &g_130[0];
    uint8_t * const **l_917 = &l_918;
    uint32_t l_932[6];
    int8_t l_936 = 0x50L;
    uint64_t *l_939 = &g_518;
    int32_t l_940 = 0x480507E1L;
    uint64_t l_941 = 18446744073709551606UL;
    uint8_t l_948 = 0x2AL;
    int8_t *l_969 = &l_809;
    int8_t **l_968[10];
    int32_t ** const *l_977 = &g_43;
    int32_t ** const **l_976 = &l_977;
    int i, j;
    for (i = 0; i < 6; i++)
        l_932[i] = 0UL;
    for (i = 0; i < 10; i++)
        l_968[i] = &l_969;
    for (g_142 = 0; (g_142 <= 0); g_142 += 1)
    { /* block id: 300 */
        uint8_t l_661 = 247UL;
        int32_t l_664 = 1L;
        int16_t l_717 = 0x13A8L;
        int16_t ***l_738[1];
        int32_t l_783 = 7L;
        uint32_t l_784 = 4294967295UL;
        int16_t l_795 = 0L;
        uint32_t l_796 = 0x0D7B52A0L;
        uint16_t l_814 = 0xCC7CL;
        int32_t l_861 = 8L;
        int64_t *l_893 = &g_236;
        int i;
        for (i = 0; i < 1; i++)
            l_738[i] = &g_164[0];
        for (g_160 = 0; (g_160 <= 2); g_160 += 1)
        { /* block id: 303 */
            int16_t *l_653 = &g_67;
            uint32_t *l_658 = &g_659;
            int32_t l_734 = 1L;
            uint32_t * const *l_742 = &g_606[1][6];
            const int64_t *l_752 = &g_753;
            const int64_t **l_751 = &l_752;
            uint64_t **l_754 = (void*)0;
            int32_t l_764 = 0x5F2036A0L;
            int32_t l_780 = (-4L);
            uint8_t ***l_844 = (void*)0;
            uint64_t l_872 = 18446744073709551615UL;
            uint8_t l_910 = 255UL;
            int i, j;
            if ((safe_mod_func_uint32_t_u_u(((safe_add_func_uint16_t_u_u(g_126[(g_160 + 1)][g_142], (((((*l_653) &= (~g_126[g_160][g_142])) , ((((0x40C986C89F07253BLL != (safe_mod_func_int64_t_s_s((l_656[8] != (g_657 = l_656[8])), p_30))) , (((*l_658) |= g_110) , l_660)) > g_174) < p_30)) || p_30) < p_30))) == 1UL), p_30)))
            { /* block id: 307 */
                for (g_124 = 0; (g_124 <= 0); g_124 += 1)
                { /* block id: 310 */
                    return l_661;
                }
                l_664 |= g_126[(g_160 + 1)][g_142];
                if (g_126[(g_160 + 1)][g_142])
                    continue;
                for (l_661 = 0; (l_661 <= 2); l_661 += 1)
                { /* block id: 317 */
                    if (p_30)
                        break;
                }
            }
            else
            { /* block id: 320 */
                int64_t l_673 = 0x940B650884B79E00LL;
                uint8_t ***l_677 = &g_129;
                for (g_67 = 0; (g_67 <= 9); g_67 += 1)
                { /* block id: 323 */
                    int64_t l_678[1][4][4];
                    int32_t *l_690[4][1] = {{&g_71},{&l_664},{&g_71},{&l_664}};
                    int i, j, k;
                    for (i = 0; i < 1; i++)
                    {
                        for (j = 0; j < 4; j++)
                        {
                            for (k = 0; k < 4; k++)
                                l_678[i][j][k] = 0x0E64025CFCC5922FLL;
                        }
                    }
                    l_691[8][1] |= (((safe_div_func_uint32_t_u_u(((safe_rshift_func_int16_t_s_s((p_30 , (safe_sub_func_uint8_t_u_u((p_30 && (((safe_sub_func_int8_t_s_s(l_673, ((safe_div_func_int8_t_s_s((1L != (l_678[0][1][1] = ((!p_30) & (l_677 == (void*)0)))), (safe_lshift_func_uint8_t_u_s((safe_rshift_func_uint8_t_u_u(l_660, ((~(((!(safe_sub_func_uint32_t_u_u(((safe_rshift_func_uint8_t_u_s(251UL, p_30)) & p_30), p_30))) , p_30) | p_30)) >= 0xA4L))), g_689[0])))) || 0x55DFL))) , (void*)0) == (void*)0)), (**g_129)))), p_30)) <= l_661), (*g_272))) & 255UL) >= g_174);
                }
                if (l_664)
                    break;
            }
            for (g_571 = 0; (g_571 >= 0); g_571 -= 1)
            { /* block id: 331 */
                const int64_t l_718[1] = {0x970FC52A63DFC9E2LL};
                uint8_t ****l_732 = (void*)0;
                uint8_t *****l_731[4] = {&l_732,&l_732,&l_732,&l_732};
                int16_t ***l_739 = &g_164[2];
                int32_t l_740[2];
                int i;
                for (i = 0; i < 2; i++)
                    l_740[i] = 0x5DF29D70L;
                for (l_661 = 0; (l_661 <= 0); l_661 += 1)
                { /* block id: 334 */
                    int32_t l_713[8] = {(-9L),(-8L),(-9L),(-9L),(-8L),(-9L),(-9L),(-8L)};
                    uint8_t ***l_716 = &g_129;
                    uint8_t ****l_715 = &l_716;
                    uint8_t ***** const l_714[10] = {&l_715,&l_715,&l_715,&l_715,&l_715,&l_715,&l_715,&l_715,&l_715,&l_715};
                    int64_t l_730 = (-1L);
                    int32_t *l_743 = &l_691[3][0];
                    int i;
                    if (((safe_mul_func_int16_t_s_s(p_30, ((((((safe_rshift_func_int8_t_s_u((((safe_div_func_uint64_t_u_u(g_185, (safe_unary_minus_func_int8_t_s(((safe_rshift_func_int32_t_s_s((safe_mod_func_uint32_t_u_u((((g_518++) != (p_30 != (0xD5E118D1L | (0x6BB7L ^ l_691[2][1])))) , (safe_mul_func_int8_t_s_s((4294967295UL && (((((*l_658) |= (safe_rshift_func_int8_t_s_u(((0UL ^ (l_713[2] |= (safe_sub_func_int16_t_s_s((g_126[(g_160 + 1)][g_142] , 1L), l_691[6][1])))) > 3L), p_30))) , l_714[0]) != (void*)0) ^ l_717)), p_30))), 0x70FCC9BEL)), 1)) < p_30))))) & l_718[0]) != (**g_129)), (**g_129))) , 7L) , p_30) || (-1L)) | g_126[(g_160 + 1)][g_142]) == l_718[0]))) , (-10L)))
                    { /* block id: 338 */
                        int8_t *l_724 = &g_185;
                        int32_t l_729 = (-9L);
                        int i;
                        g_662[(g_160 + 1)] = (**g_339);
                        l_731[1] = &l_715;
                        (*g_733) = p_30;
                    }
                    else
                    { /* block id: 344 */
                        int32_t *l_735 = &l_713[2];
                        (*l_735) = (l_734 = p_30);
                    }
                    (*l_743) = (((l_740[1] = (safe_rshift_func_int16_t_s_s((l_738[0] == l_739), 7))) , (l_661 , l_741)) != l_742);
                }
            }
            if (((g_518 |= (!(safe_div_func_uint32_t_u_u(((**l_741) ^= (safe_mul_func_int32_t_s_s((((((g_259 > (((safe_div_func_uint32_t_u_u((((g_159[0][1] &= (((*l_751) = (void*)0) != l_656[8])) , l_754) != g_755), ((safe_mod_func_int16_t_s_s(((safe_add_func_uint8_t_u_u((g_126[(g_160 + 3)][g_142] &= ((safe_div_func_int64_t_s_s(p_30, (safe_mul_func_uint16_t_u_u(0x8A3CL, l_717)))) > ((l_734 = 0L) || p_30))), p_30)) < p_30), l_691[3][0])) , 0xC79A1E0CL))) == l_764) , p_30)) , (void*)0) != (void*)0) , 0x3EEAL) , 0xFE74B566L), p_30))), p_30)))) ^ g_185))
            { /* block id: 358 */
                int16_t l_769[9][10][2] = {{{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL}},{{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L}},{{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL}},{{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL}},{{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L}},{{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL}},{{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL}},{{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L}},{{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL},{0xA3E7L,0x0E5AL},{0x0E5AL,0xA3E7L},{0x0E5AL,0x0E5AL}}};
                int32_t l_778[1];
                int i, j, k;
                for (i = 0; i < 1; i++)
                    l_778[i] = 0xABD7DF2FL;
                for (g_174 = 0; (g_174 <= 0); g_174 += 1)
                { /* block id: 361 */
                    int32_t l_767 = (-3L);
                    int32_t l_779 = 0xB8029C41L;
                    int32_t l_781 = 0L;
                    int32_t l_782 = 0xF258BDBFL;
                    uint8_t l_808 = 255UL;
                    for (g_340 = 0; (g_340 <= 3); g_340 += 1)
                    { /* block id: 364 */
                        int i;
                        g_662[g_340] = g_662[(g_174 + 2)];
                        return p_30;
                    }
                    for (l_661 = 0; (l_661 <= 1); l_661 += 1)
                    { /* block id: 370 */
                        uint32_t l_768 = 0UL;
                        int32_t *l_773 = &g_689[0];
                        int i;
                        (**g_339) = (*g_43);
                        (*l_773) ^= ((((((safe_sub_func_int32_t_s_s((l_768 = l_767), (p_30 == (l_769[5][0][1] , ((p_30 <= p_30) != (safe_sub_func_int64_t_s_s((l_769[5][0][1] , (&l_738[g_142] == &g_522[g_160])), p_30))))))) < p_30) , p_30) , 0L) , p_30) == g_126[(g_160 + 1)][g_142]);
                        return g_159[0][3];
                    }
                    if ((safe_mod_func_uint64_t_u_u(0xFD6DCB9A48A82FD4LL, p_30)))
                    { /* block id: 376 */
                        int32_t *l_777[6];
                        int i;
                        for (i = 0; i < 6; i++)
                            l_777[i] = &g_689[0];
                        l_660 = l_664;
                        l_784--;
                    }
                    else
                    { /* block id: 379 */
                        uint32_t *l_799[8] = {(void*)0,&l_784,(void*)0,(void*)0,&l_784,(void*)0,(void*)0,&l_784};
                        uint64_t *l_806 = (void*)0;
                        uint64_t *l_807 = (void*)0;
                        int i;
                        l_660 = (((l_764 ^= ((safe_lshift_func_uint16_t_u_u(((((safe_mul_func_uint8_t_u_u((safe_mul_func_int64_t_s_s((p_30 <= (safe_add_func_uint32_t_u_u(((**l_742) &= l_795), l_796))), (((safe_sub_func_int32_t_s_s(0x1B94502CL, (l_691[8][1] = 0x2C56FF2DL))) < 4294967295UL) > (safe_mod_func_int32_t_s_s((l_769[7][1][1] ^ (g_3 <= (safe_mod_func_int32_t_s_s((safe_rshift_func_uint64_t_u_u((l_664 = p_30), p_30)), l_808)))), 0x08BD691BL))))), p_30)) <= l_779) , l_795) , 0x0412L), 0)) == 3UL)) <= 18446744073709551613UL) | l_809);
                        if (l_783)
                            break;
                        l_780 ^= (p_30 >= (3L < (-1L)));
                    }
                }
            }
            else
            { /* block id: 389 */
                int64_t l_834 = 0L;
                uint32_t l_862 = 4294967295UL;
                int32_t l_871 = 0x0CEB12F0L;
                int64_t **l_878 = (void*)0;
                int8_t *l_884 = &l_809;
                uint32_t l_890[1][8][7] = {{{0xE483945CL,18446744073709551614UL,0x40DBC154L,18446744073709551614UL,18446744073709551614UL,0x40DBC154L,18446744073709551614UL},{18446744073709551613UL,0x10B5DFDEL,0x1AC3B659L,0x10B5DFDEL,18446744073709551613UL,0x10B5DFDEL,0x1AC3B659L},{18446744073709551614UL,18446744073709551614UL,0x40DBC154L,18446744073709551614UL,0xE483945CL,0xE483945CL,18446744073709551614UL},{1UL,1UL,1UL,0x10B5DFDEL,1UL,1UL,1UL},{18446744073709551614UL,18446744073709551614UL,18446744073709551614UL,18446744073709551614UL,0xE483945CL,0x40DBC154L,0x40DBC154L},{18446744073709551613UL,1UL,0x1AC3B659L,1UL,18446744073709551613UL,1UL,0x1AC3B659L},{0xE483945CL,18446744073709551614UL,18446744073709551614UL,18446744073709551614UL,18446744073709551614UL,0xE483945CL,0x40DBC154L},{1UL,0x10B5DFDEL,1UL,1UL,1UL,0x10B5DFDEL,1UL}}};
                int i, j, k;
                if ((safe_div_func_uint64_t_u_u(l_814, (safe_lshift_func_int16_t_s_u(((*l_653) = (safe_sub_func_int8_t_s_s(((l_796 , &g_657) == g_819[3]), 0x7BL))), 13)))))
                { /* block id: 391 */
                    int32_t *l_833 = (void*)0;
                    for (l_784 = 0; (l_784 < 40); ++l_784)
                    { /* block id: 394 */
                        int16_t l_824 = 7L;
                        int32_t *l_835[7][1] = {{&g_71},{(void*)0},{&g_71},{(void*)0},{&g_71},{(void*)0},{&g_71}};
                        int i, j;
                        l_780 = l_824;
                        (*g_43) = (l_835[0][0] = func_45((*g_339), (safe_add_func_int64_t_s_s((-6L), (safe_rshift_func_int16_t_s_s(((((1UL || p_30) <= 0x0BL) == (((*g_43) = ((((safe_rshift_func_int8_t_s_s(p_30, (safe_mul_func_int64_t_s_s(((void*)0 == &p_30), l_824)))) > p_30) , g_126[g_160][g_142]) , (**g_339))) == l_833)) <= l_734), 10)))), l_834, p_30, l_834));
                        (*g_43) = (*g_43);
                    }
                }
                else
                { /* block id: 401 */
                    uint32_t l_847 = 4294967292UL;
                    int8_t *l_850 = &g_185;
                    int32_t l_860 = 0x1F466924L;
                    if ((safe_div_func_int8_t_s_s(((*l_850) |= (safe_lshift_func_uint32_t_u_u(p_30, (safe_div_func_uint8_t_u_u(((void*)0 != g_755), (safe_mul_func_int32_t_s_s(((((void*)0 == l_844) != (p_30 , ((safe_add_func_uint16_t_u_u((l_847 < (((+l_849) >= (g_126[(g_160 + 1)][g_142] <= 0xEC834BAB3B3E0115LL)) , 0x19C5BD168EE6ADCFLL)), 0x7E94L)) ^ g_124))) <= p_30), p_30))))))), g_160)))
                    { /* block id: 403 */
                        int32_t *l_854 = &l_764;
                        int32_t *l_855 = &l_734;
                        int32_t *l_856 = &l_734;
                        int32_t *l_857 = &l_660;
                        int32_t *l_858 = (void*)0;
                        int32_t *l_859[5] = {&g_3,&g_3,&g_3,&g_3,&g_3};
                        int i;
                        (*l_854) ^= (safe_rshift_func_uint32_t_u_s((safe_unary_minus_func_uint8_t_u(255UL)), 30));
                        ++l_862;
                        if ((*g_272))
                            continue;
                    }
                    else
                    { /* block id: 407 */
                        int32_t *l_865 = &l_691[8][1];
                        int32_t *l_866 = &l_664;
                        int32_t *l_867 = (void*)0;
                        int32_t *l_868 = &l_664;
                        int32_t *l_869 = &l_664;
                        int32_t *l_870[8][6];
                        int i, j;
                        for (i = 0; i < 8; i++)
                        {
                            for (j = 0; j < 6; j++)
                                l_870[i][j] = &l_861;
                        }
                        l_872++;
                        if ((***g_339))
                            continue;
                    }
                }
                (*g_733) |= (l_871 || ((void*)0 != l_656[8]));
                for (g_110 = (-6); (g_110 <= 26); g_110++)
                { /* block id: 415 */
                    int16_t l_877 = 0x4AFCL;
                    int8_t *l_883 = &l_809;
                    int32_t l_886[9] = {0xF853CA9CL,0xF853CA9CL,0L,0xF853CA9CL,0xF853CA9CL,0L,0xF853CA9CL,0xF853CA9CL,0L};
                    int i;
                    (*g_879) = (l_877 , l_878);
                    for (l_764 = 17; (l_764 == (-2)); l_764--)
                    { /* block id: 419 */
                        return l_871;
                    }
                    if (((l_883 == l_884) & p_30))
                    { /* block id: 422 */
                        int32_t *l_885 = &l_734;
                        int32_t *l_887 = (void*)0;
                        int32_t *l_888 = (void*)0;
                        int32_t *l_889[4][8] = {{&l_660,&l_664,(void*)0,&l_783,(void*)0,&l_664,&l_660,&g_689[0]},{(void*)0,&l_664,&l_660,&g_689[0],&l_783,&l_783,&g_689[0],&l_660},{&g_71,&g_71,&l_664,&l_886[7],&l_783,&l_783,&g_3,&l_783},{(void*)0,&l_660,&l_886[7],&l_660,(void*)0,&g_71,&g_71,&l_783}};
                        int i, j;
                        ++l_890[0][1][4];
                    }
                    else
                    { /* block id: 424 */
                        int64_t **l_894 = &l_656[3];
                        int64_t **l_895 = (void*)0;
                        int64_t **l_896 = &g_657;
                        int32_t l_913 = 0L;
                        int32_t *l_914 = &g_71;
                        l_871 = ((*l_914) = (l_913 = ((((*l_894) = l_893) == ((*l_896) = l_893)) <= (((safe_mul_func_uint32_t_u_u((((*l_893) = ((safe_lshift_func_uint32_t_u_u(p_30, 13)) <= (safe_mod_func_uint16_t_u_u(7UL, (safe_unary_minus_func_int16_t_s(p_30)))))) ^ (safe_add_func_uint64_t_u_u(((l_910 = (safe_rshift_func_uint8_t_u_s((--(**g_129)), 4))) ^ (0x9FL > g_159[1][0])), (safe_add_func_uint64_t_u_u(l_661, l_784))))), p_30)) , g_689[0]) && p_30))));
                    }
                }
            }
        }
    }
    l_660 ^= ((((*l_916) = l_915) == l_917) , ((safe_sub_func_uint16_t_u_u(((((((l_691[8][1] = ((***l_917) = ((((void*)0 != (*l_916)) != (+(safe_mul_func_int32_t_s_s((safe_mod_func_int32_t_s_s(((void*)0 != g_926), (safe_mod_func_uint16_t_u_u(((**g_926) = (safe_sub_func_uint8_t_u_u(l_932[2], p_30))), ((safe_lshift_func_int64_t_s_s((((((void*)0 != l_719) , p_30) != 0xACB7EB0FL) == p_30), l_932[2])) , p_30))))), g_935[3])))) > (**g_605)))) ^ g_160) ^ p_30) || 0x9992AF04L) , l_849) <= 255UL), l_936)) <= p_30));
    l_660 = (l_691[2][1] >= ((safe_sub_func_uint16_t_u_u(l_691[8][1], ((((*l_939) = ((void*)0 != g_755)) < l_940) == p_30))) || (l_941 != (((safe_sub_func_int8_t_s_s((0x2F655B0165DE75B3LL || (safe_rshift_func_int8_t_s_s((((safe_mul_func_uint8_t_u_u(((***l_917) = ((p_30 <= 1UL) && 1UL)), l_932[2])) != l_936) , l_948), g_159[0][3]))), p_30)) , 0x1D6683EAE4D5A0D7LL) < p_30))));
    for (l_809 = (-23); (l_809 < (-29)); l_809 = safe_sub_func_uint64_t_u_u(l_809, 1))
    { /* block id: 448 */
        uint32_t l_951[4];
        int32_t *l_954 = &l_849;
        int16_t l_962 = 1L;
        int8_t *l_964[1];
        int8_t **l_963 = &l_964[0];
        int32_t ** const ***l_978 = &l_976;
        int32_t *** const *l_979 = &g_339;
        int32_t *** const **l_980 = &l_979;
        int i;
        for (i = 0; i < 4; i++)
            l_951[i] = 6UL;
        for (i = 0; i < 1; i++)
            l_964[i] = &l_936;
        if (p_30)
            break;
        for (g_67 = 0; (g_67 <= 2); g_67 += 1)
        { /* block id: 452 */
            int32_t *l_952 = &g_71;
            int32_t **l_953 = &g_214[1];
            for (g_185 = 0; (g_185 <= 2); g_185 += 1)
            { /* block id: 455 */
                return l_951[1];
            }
            (*l_953) = ((**g_339) = l_952);
            (*g_43) = l_954;
            return g_259;
        }
        (*l_954) = (!(safe_lshift_func_int64_t_s_s((safe_mod_func_int8_t_s_s(((((l_962 < ((((*l_963) = &g_185) != (void*)0) >= (~(safe_lshift_func_int64_t_s_u(((p_30 , l_968[2]) != g_970), ((((g_174 = (safe_sub_func_int64_t_s_s((safe_mod_func_uint32_t_u_u((((*l_954) < (g_185 = ((((*l_978) = l_976) != ((*l_980) = l_979)) & (***l_977)))) != (***l_977)), p_30)), 0x0526C11CE622063CLL))) , 0x02L) && 5UL) < (*g_927))))))) && 0UL) < p_30) == (*l_954)), p_30)), 54)));
        for (g_110 = 0; (g_110 < 24); g_110 = safe_add_func_int16_t_s_s(g_110, 3))
        { /* block id: 471 */
            int32_t l_983 = (-8L);
            (*l_954) = l_983;
        }
    }
    return g_753;
}


/* ------------------------------------------ */
/* 
 * reads : g_44 g_3
 * writes:
 */
static uint16_t  func_37(int64_t  p_38, int32_t * p_39, int32_t * const * p_40, int32_t ** p_41)
{ /* block id: 9 */
    int16_t *l_65 = (void*)0;
    int16_t *l_66[8][1][6] = {{{&g_67,&g_67,&g_67,&g_67,&g_67,&g_67}},{{&g_67,&g_67,&g_67,&g_67,&g_67,&g_67}},{{&g_67,&g_67,&g_67,&g_67,&g_67,&g_67}},{{&g_67,&g_67,&g_67,&g_67,&g_67,(void*)0}},{{&g_67,&g_67,&g_67,&g_67,&g_67,&g_67}},{{&g_67,&g_67,&g_67,&g_67,&g_67,&g_67}},{{&g_67,&g_67,&g_67,&g_67,&g_67,(void*)0}},{{&g_67,&g_67,&g_67,&g_67,&g_67,&g_67}}};
    int32_t l_68[3];
    int32_t **l_69 = &g_44;
    int32_t *l_85[4][5] = {{&l_68[1],(void*)0,&l_68[1],&g_71,&l_68[2]},{&l_68[1],(void*)0,&l_68[2],(void*)0,&l_68[1]},{&l_68[1],(void*)0,(void*)0,&l_68[1],(void*)0},{(void*)0,(void*)0,&l_68[2],&l_68[1],&g_71}};
    int32_t **l_84 = &l_85[0][0];
    int8_t *l_509[7] = {&g_185,(void*)0,(void*)0,&g_185,(void*)0,(void*)0,&g_185};
    uint8_t l_517 = 255UL;
    int64_t l_544 = 0x4B5813945DA00010LL;
    int32_t l_567 = (-10L);
    int32_t l_574 = 0x7830FC48L;
    int16_t ***l_609 = &g_164[0];
    uint64_t l_616 = 0xF0D0CCD13471B744LL;
    int32_t **l_622 = &l_85[3][1];
    uint64_t l_641[8] = {18446744073709551612UL,18446744073709551612UL,18446744073709551612UL,18446744073709551612UL,18446744073709551612UL,18446744073709551612UL,18446744073709551612UL,18446744073709551612UL};
    uint32_t **l_643[6] = {&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2],&g_606[0][2]};
    uint32_t ***l_642 = &l_643[2];
    int64_t *l_644 = &g_236;
    uint64_t l_645 = 0x78AB5C1C1ECECF2DLL;
    int8_t l_646 = 0L;
    uint32_t l_647 = 0x9930DAD4L;
    int i, j, k;
    for (i = 0; i < 3; i++)
        l_68[i] = 0xC04840C2L;
    return (**l_69);
}


/* ------------------------------------------ */
/* 
 * reads : g_236 g_129 g_130 g_174 g_3 g_159 g_44 g_160 g_209 g_339 g_43
 * writes: g_236 g_126 g_174
 */
static int32_t * func_45(int32_t ** p_46, int32_t  p_47, int16_t  p_48, uint32_t  p_49, int16_t  p_50)
{ /* block id: 179 */
    uint8_t l_399[7] = {0xB9L,0x84L,0x84L,0xB9L,0x84L,0x84L,0xB9L};
    int32_t l_409[1][10] = {{1L,0x9E93B6C1L,1L,0x9E93B6C1L,1L,0x9E93B6C1L,1L,0x9E93B6C1L,1L,0x9E93B6C1L}};
    uint16_t *l_425 = &g_160;
    uint16_t **l_424 = &l_425;
    uint32_t *l_430 = &g_172;
    int8_t l_453 = 0x83L;
    int32_t l_474[9] = {0x3E58A54BL,0x3E58A54BL,0xF418CDA6L,0x3E58A54BL,0x3E58A54BL,0xF418CDA6L,0x3E58A54BL,0x3E58A54BL,0xF418CDA6L};
    int i, j;
    for (g_236 = (-14); (g_236 != (-1)); ++g_236)
    { /* block id: 182 */
        int32_t l_397 = 1L;
        int16_t *l_398[7][3][7] = {{{&g_67,&g_67,(void*)0,&g_67,&g_67,&g_67,&g_340},{(void*)0,(void*)0,&g_67,&g_67,&g_340,(void*)0,&g_340},{(void*)0,(void*)0,&g_67,&g_67,(void*)0,&g_340,(void*)0}},{{(void*)0,(void*)0,(void*)0,(void*)0,&g_67,&g_67,(void*)0},{&g_67,(void*)0,&g_67,(void*)0,&g_340,(void*)0,&g_67},{(void*)0,&g_67,&g_67,&g_67,&g_67,(void*)0,(void*)0}},{{(void*)0,&g_67,(void*)0,&g_67,(void*)0,&g_67,&g_67},{(void*)0,(void*)0,&g_67,&g_67,&g_340,&g_340,(void*)0},{(void*)0,&g_67,&g_67,&g_67,&g_67,(void*)0,(void*)0}},{{&g_67,&g_67,(void*)0,&g_67,&g_67,&g_67,&g_340},{(void*)0,(void*)0,&g_67,&g_67,&g_340,(void*)0,&g_340},{(void*)0,(void*)0,&g_67,&g_67,(void*)0,&g_340,(void*)0}},{{(void*)0,(void*)0,(void*)0,(void*)0,&g_67,&g_67,(void*)0},{&g_67,(void*)0,&g_67,(void*)0,&g_340,(void*)0,&g_67},{(void*)0,&g_67,&g_67,&g_67,&g_67,(void*)0,(void*)0}},{{(void*)0,&g_67,(void*)0,&g_67,(void*)0,&g_67,&g_67},{(void*)0,(void*)0,&g_67,&g_67,&g_340,&g_340,(void*)0},{(void*)0,&g_67,&g_67,&g_67,&g_67,(void*)0,(void*)0}},{{&g_67,&g_67,(void*)0,&g_67,&g_67,&g_67,&g_340},{(void*)0,(void*)0,&g_67,&g_67,&g_340,(void*)0,&g_340},{(void*)0,(void*)0,&g_67,&g_67,(void*)0,&g_340,(void*)0}}};
        int16_t l_406 = (-1L);
        int64_t l_410 = 0xA5A67771A94A4F0ELL;
        int32_t l_411 = 0L;
        const uint16_t *l_423[2][9];
        const uint16_t **l_422 = &l_423[1][8];
        uint32_t *l_428 = &g_172;
        uint32_t **l_429 = &l_428;
        uint64_t *l_467 = &g_174;
        int32_t *l_473[4][6][5] = {{{&l_409[0][7],&g_3,&l_409[0][9],&g_3,&l_409[0][7]},{&l_397,&g_71,&l_411,&g_3,&l_397},{&g_71,(void*)0,(void*)0,&g_71,&l_409[0][9]},{&l_397,&g_3,&g_71,(void*)0,&g_3},{&l_411,&g_71,&l_409[0][9],&l_409[0][7],&l_409[0][7]},{&g_3,&g_3,&g_3,&g_3,&l_409[0][4]}},{{(void*)0,&g_71,&g_71,(void*)0,(void*)0},{(void*)0,&g_3,&l_409[0][9],&g_3,&l_397},{&l_409[0][7],&l_409[0][2],&l_409[0][9],(void*)0,&l_411},{&l_397,(void*)0,&g_3,&g_3,&g_3},{&l_409[0][9],(void*)0,&l_409[0][9],&l_409[0][7],(void*)0},{&l_397,(void*)0,&g_3,(void*)0,(void*)0}},{{&l_409[0][7],&g_71,&l_397,&g_71,&l_409[0][7]},{(void*)0,(void*)0,&g_3,(void*)0,&l_397},{(void*)0,&l_409[0][7],&l_409[0][9],(void*)0,&l_409[0][9]},{&g_3,&g_3,&g_3,(void*)0,&l_397},{&l_411,(void*)0,&l_409[0][9],&l_409[0][2],&l_409[0][7]},{&l_397,&g_3,&l_409[0][9],&g_3,(void*)0}},{{(void*)0,(void*)0,&g_71,&g_71,(void*)0},{&l_409[0][4],&g_3,&g_3,&g_3,&g_3},{&l_409[0][7],&l_409[0][7],&l_409[0][9],&g_71,&l_411},{&g_3,(void*)0,&g_71,&g_3,&l_397},{&l_409[0][9],&g_71,&l_409[0][9],&l_409[0][2],(void*)0},{&g_3,(void*)0,&l_409[0][9],(void*)0,&l_409[0][4]}}};
        int i, j, k;
        for (i = 0; i < 2; i++)
        {
            for (j = 0; j < 9; j++)
                l_423[i][j] = &g_259;
        }
        l_409[0][7] = (safe_unary_minus_func_uint16_t_u((safe_unary_minus_func_uint64_t_u(((safe_lshift_func_int32_t_s_s((safe_mod_func_int16_t_s_s(l_397, (l_399[4] = 0xD434L))), ((0x6D85L != (((**g_129) = 1UL) , (safe_div_func_uint16_t_u_u((safe_div_func_int8_t_s_s((safe_lshift_func_uint16_t_u_u((((l_406 , p_49) ^ ((safe_rshift_func_uint64_t_u_s((((((&g_43 != (void*)0) , ((((&p_50 == &p_50) , 65526UL) , g_174) , 0L)) , p_48) , (-2L)) , p_47), l_409[0][7])) <= 65535UL)) <= l_410), g_3)), g_159[4][1])), p_48)))) , (**p_46)))) < l_411)))));
        if ((safe_mul_func_int8_t_s_s(p_47, ((safe_mul_func_uint32_t_u_u(0x1509AACCL, (((((safe_mod_func_int32_t_s_s((safe_mul_func_int64_t_s_s((safe_div_func_int8_t_s_s(((((p_49 , l_422) == l_424) || l_406) | l_399[4]), (safe_rshift_func_uint16_t_u_s((((*l_429) = l_428) != l_430), 6)))), l_406)), l_399[1])) , 0L) <= 0UL) , (**p_46)) >= 0x6220E602L))) , l_409[0][7]))))
        { /* block id: 187 */
            uint64_t l_437 = 0x3B0071A631D2784ALL;
            int16_t *l_460 = &g_67;
            int16_t **l_461 = &l_398[5][0][3];
            l_409[0][0] |= (safe_mod_func_uint16_t_u_u((((safe_mod_func_int16_t_s_s((((p_49 ^ (safe_div_func_uint16_t_u_u(l_437, (safe_add_func_uint64_t_u_u((safe_lshift_func_uint8_t_u_u(((l_411 && ((safe_div_func_int32_t_s_s((+0xB62B6FBF9409E844LL), l_437)) , (safe_rshift_func_int64_t_s_u(((safe_sub_func_int32_t_s_s(0xED675A7EL, (g_159[2][1] > (safe_add_func_int8_t_s_s((0x0FL <= (safe_mul_func_int16_t_s_s(p_50, l_411))), 1UL))))) || p_49), 4)))) != l_437), p_49)), p_47))))) != g_160) == (-5L)), l_453)) == l_406) || 0xACL), l_437));
            l_397 = (safe_add_func_int8_t_s_s((safe_add_func_int16_t_s_s((l_409[0][7] = 0x3247L), (safe_mul_func_uint16_t_u_u(l_399[4], l_437)))), (l_460 == ((*l_461) = l_460))));
        }
        else
        { /* block id: 192 */
            return (*p_46);
        }
        l_409[0][7] = (~((((p_48 | g_209) < (((*l_467) = (safe_mul_func_int16_t_s_s(l_409[0][6], (safe_div_func_int32_t_s_s(((void*)0 == (**g_339)), (**g_43)))))) , ((-1L) > (((safe_rshift_func_uint32_t_u_u((~0x25D41152DA7EACACLL), 23)) ^ (safe_mod_func_uint8_t_u_u(((((*l_467) = 0xEE8544126F136F0ELL) , l_411) == 252UL), 0x67L))) , p_49)))) >= l_397) <= l_410));
    }
    l_474[3] |= (l_409[0][7] &= 0xAD7E1A42L);
    return (*p_46);
}


/* ------------------------------------------ */
/* 
 * reads : g_44 g_3 g_67 g_71 g_126 g_142 g_159 g_160 g_163 g_43 g_124 g_172 g_164 g_110 g_208 g_209 g_236 g_130 g_174 g_272 g_277 g_185 g_339
 * writes: g_110 g_124 g_126 g_71 g_142 g_67 g_159 g_164 g_174 g_185 g_208 g_160 g_214 g_43 g_236 g_278
 */
static int32_t ** func_51(const uint8_t  p_52, uint32_t  p_53, int32_t ** p_54, uint64_t  p_55)
{ /* block id: 16 */
    int32_t l_89[5];
    const int32_t **l_96 = (void*)0;
    const int32_t ***l_97 = &l_96;
    uint8_t l_102 = 0x66L;
    int32_t **l_111 = &g_44;
    uint8_t **l_132 = &g_130[0];
    int32_t l_233 = (-4L);
    int64_t *l_264[6][2] = {{&g_236,&g_236},{&g_236,&g_236},{&g_236,&g_236},{&g_236,&g_236},{&g_236,&g_236},{&g_236,&g_236}};
    int16_t *l_267 = &g_67;
    int16_t ** const l_266 = &l_267;
    uint8_t * const l_270 = &l_102;
    int32_t l_296 = 0x31C94D66L;
    uint64_t l_317 = 18446744073709551615UL;
    int i, j;
    for (i = 0; i < 5; i++)
        l_89[i] = (-1L);
    if ((~(((safe_lshift_func_uint16_t_u_u((((l_89[0] > (0L & l_89[0])) , (safe_lshift_func_int32_t_s_u((((safe_lshift_func_uint16_t_u_u((safe_lshift_func_uint16_t_u_s(((p_54 != (void*)0) , (((*l_97) = l_96) != ((safe_lshift_func_int64_t_s_u((((safe_mul_func_uint16_t_u_u((l_102 & (safe_div_func_uint8_t_u_u(((g_110 = (~((safe_lshift_func_int32_t_s_s((**p_54), (safe_lshift_func_uint16_t_u_u(p_55, 12)))) | p_53))) & 0L), 0x70L))), p_53)) <= 249UL) && 1UL), l_102)) , l_111))), (**l_111))), p_53)) > 2UL) >= g_67), 16))) != 0xB8L), (**l_111))) >= 1L) , g_71)))
    { /* block id: 19 */
        uint8_t *l_112 = &l_102;
        int32_t **l_122 = &g_44;
        uint16_t *l_123 = &g_124;
        uint8_t *l_125 = &g_126[6][0];
        uint8_t ***l_131[10] = {&g_129,&g_129,&g_129,&g_129,&g_129,&g_129,&g_129,&g_129,&g_129,&g_129};
        int i;
        g_71 = ((p_52 < p_55) ^ ((--(*l_112)) & ((*l_125) &= ((safe_add_func_int32_t_s_s((0x632420D6CD47B9DALL == (0x71L | ((safe_mul_func_int16_t_s_s((g_67 & p_52), (((((((((*l_123) = (((safe_mul_func_uint16_t_u_u((((!(p_54 != ((l_122 == &g_44) , (void*)0))) == (**l_122)) && 1L), 0x1143L)) ^ g_67) && (*g_44))) , (**l_122)) <= g_71) , (void*)0) == (*p_54)) & 0UL) && (**l_122)) < g_3))) <= p_53))), 0xC53350B7L)) > 1UL))));
        l_132 = &l_112;
        g_71 = (safe_sub_func_uint8_t_u_u(0x6DL, 0x74L));
    }
    else
    { /* block id: 26 */
        int32_t *l_135 = &g_71;
        int32_t *l_136 = &l_89[4];
        int32_t *l_137 = &g_71;
        int32_t *l_138 = &l_89[0];
        int32_t *l_139 = &g_71;
        int32_t *l_140 = &g_71;
        int32_t *l_141[4] = {(void*)0,(void*)0,(void*)0,(void*)0};
        int16_t *l_162[3];
        int16_t **l_161 = &l_162[1];
        int16_t **l_191 = (void*)0;
        int8_t *l_194 = &g_185;
        const uint16_t *l_260[4] = {&g_259,&g_259,&g_259,&g_259};
        uint8_t ***l_261[4] = {&l_132,&l_132,&l_132,&l_132};
        int i;
        for (i = 0; i < 3; i++)
            l_162[i] = &g_67;
        --g_142;
        for (g_142 = (-9); (g_142 <= 29); g_142 = safe_add_func_int32_t_s_s(g_142, 2))
        { /* block id: 30 */
            uint8_t **l_151 = (void*)0;
            int32_t l_153 = (-5L);
            int16_t * const l_158[2] = {&g_67,&g_67};
            int32_t **l_222 = &l_141[3];
            int i;
            for (g_67 = 0; (g_67 < (-20)); g_67 = safe_sub_func_uint8_t_u_u(g_67, 6))
            { /* block id: 33 */
                int32_t l_177 = 0xF453DDAAL;
                int32_t *l_216 = &g_71;
                for (g_110 = (-2); (g_110 > 29); g_110 = safe_add_func_int8_t_s_s(g_110, 5))
                { /* block id: 36 */
                    uint8_t **l_152 = &g_130[0];
                    int32_t *l_165 = (void*)0;
                    if (((((((l_151 == l_152) , l_153) >= (safe_sub_func_uint8_t_u_u((safe_sub_func_uint64_t_u_u(18446744073709551615UL, ((g_159[0][3] = ((void*)0 == l_158[1])) || ((g_159[1][1] != (g_3 , p_55)) || g_160)))), 0x79L))) & 0xE3D0L) || 0xE0600665BEC77404LL) >= 0x72L))
                    { /* block id: 38 */
                        (*g_163) = l_161;
                    }
                    else
                    { /* block id: 40 */
                        l_165 = (*g_43);
                        (*l_137) = (*g_44);
                        (*l_137) = (safe_mod_func_uint16_t_u_u(0xB768L, g_124));
                    }
                    for (l_153 = 0; (l_153 >= 12); l_153 = safe_add_func_uint16_t_u_u(l_153, 5))
                    { /* block id: 47 */
                        uint32_t *l_170 = (void*)0;
                        uint32_t *l_171[4][6] = {{&g_172,&g_172,&g_172,&g_172,&g_172,&g_172},{&g_172,&g_172,&g_172,&g_172,&g_172,&g_172},{&g_172,&g_172,&g_172,&g_172,&g_172,&g_172},{&g_172,&g_172,&g_172,&g_172,&g_172,&g_172}};
                        uint64_t *l_173 = &g_174;
                        int8_t *l_184 = &g_185;
                        int16_t ***l_190 = (void*)0;
                        int32_t l_199[9] = {0x9496D93FL,0x9496D93FL,0x9496D93FL,0x9496D93FL,0x9496D93FL,0x9496D93FL,0x9496D93FL,0x9496D93FL,0x9496D93FL};
                        uint16_t *l_203 = &g_124;
                        int32_t **l_210 = &l_135;
                        uint16_t *l_211 = &g_160;
                        int32_t **l_215[3][8] = {{&l_141[3],&l_141[3],&l_138,&l_141[3],&l_141[3],&l_138,&l_141[3],&l_141[3]},{(void*)0,&l_141[3],(void*)0,(void*)0,&l_141[3],(void*)0,&l_138,(void*)0},{(void*)0,&l_138,&l_138,(void*)0,&l_138,&l_138,(void*)0,&l_138}};
                        const int32_t *l_218 = &g_209;
                        const int32_t **l_217 = &l_218;
                        int i, j;
                        if ((**p_54))
                            break;
                        (*l_138) = ((p_53 &= 7UL) == ((*l_137) ^= ((((*l_173) = g_159[0][3]) && 0xFF0AA6A4DFBEF98CLL) || ((((g_124 | (((safe_lshift_func_uint16_t_u_u(l_177, p_52)) != ((*l_184) = (((safe_mod_func_uint64_t_u_u((safe_add_func_uint64_t_u_u((l_153 != 1L), (safe_sub_func_int64_t_s_s(g_172, g_142)))), p_55)) | (*g_44)) & 1L))) , (**p_54))) & g_142) , 0x82L) || (-6L)))));
                        (*l_137) = ((**p_54) , (safe_lshift_func_uint16_t_u_u((safe_sub_func_uint16_t_u_u((((p_55 >= (((l_177 , (l_191 = (*g_163))) == (void*)0) > (safe_sub_func_uint32_t_u_u((((((void*)0 != l_194) || ((safe_mod_func_int8_t_s_s(((safe_sub_func_uint8_t_u_u(p_52, (65526UL < g_126[0][0]))) == 0UL), l_199[0])) , p_52)) , (void*)0) != (void*)0), l_199[5])))) ^ 0x9590F8BFL) , p_55), l_153)), 4)));
                        (*l_136) = (((~1UL) > (safe_div_func_uint16_t_u_u(((*p_54) == (*p_54)), ((*l_203) = p_55)))) ^ (safe_lshift_func_uint64_t_u_u((((safe_rshift_func_int16_t_s_u(((g_208 = (*p_54)) == ((*l_210) = &l_177)), ((*l_211)++))) == ((g_214[5] = (*g_43)) != (l_216 = (*g_43)))) <= (((*l_217) = (*p_54)) != (*p_54))), 24)));
                    }
                }
                (*l_137) ^= (l_89[0] = (1L ^ (!p_55)));
            }
            for (g_110 = (-13); (g_110 != (-19)); --g_110)
            { /* block id: 71 */
                return &g_44;
            }
        }
        if (((**p_54) < (*g_208)))
        { /* block id: 75 */
            int32_t ***l_234 = &g_43;
            int64_t *l_235 = &g_236;
            (*l_136) = (safe_mod_func_int32_t_s_s((safe_rshift_func_uint16_t_u_u(g_159[0][3], (((((**l_132) ^= (((*l_235) |= (((safe_mul_func_int32_t_s_s((p_52 == 0x3325L), (+((safe_mod_func_int8_t_s_s(((+(l_162[1] == (void*)0)) > g_3), ((-1L) ^ (((*l_234) = ((g_172 || (g_110 | l_233)) , &g_44)) == p_54)))) >= (*g_208))))) && 1L) < 65535UL)) >= (**l_111))) ^ p_55) , 0xFDL) > p_52))), p_52));
        }
        else
        { /* block id: 80 */
            uint64_t *l_243 = (void*)0;
            uint64_t *l_244 = &g_174;
            int32_t l_255 = 0xDA0F3384L;
            uint16_t *l_256 = &g_124;
            const uint16_t *l_258 = &g_259;
            const uint16_t **l_257[9] = {(void*)0,(void*)0,&l_258,(void*)0,(void*)0,&l_258,(void*)0,(void*)0,&l_258};
            uint8_t ****l_262 = &l_261[3];
            int64_t *l_263 = &g_236;
            int32_t l_265 = 4L;
            int i;
            l_265 ^= (((safe_div_func_int64_t_s_s((((*l_263) |= (safe_div_func_int16_t_s_s((safe_add_func_uint64_t_u_u((p_55 &= (++(*l_244))), (((((((safe_mul_func_uint32_t_u_u(((safe_mod_func_uint8_t_u_u(p_52, (((safe_unary_minus_func_int8_t_s((((*l_137) |= (((safe_sub_func_uint16_t_u_u(((+p_53) < l_255), p_52)) , l_256) == (l_260[2] = l_162[0]))) || l_255))) , ((&l_132 == ((*l_262) = l_261[3])) , 0UL)) , 3L))) > (**g_43)), (*g_208))) <= 0x49A1L) >= p_53) < 0x53695344L) , 0x98L) ^ 0UL) , p_53))), 1UL))) < 0xFF892F54D7D783D8LL), (*l_138))) , l_264[1][0]) == l_263);
        }
    }
    for (g_236 = 1; (g_236 >= 0); g_236 -= 1)
    { /* block id: 92 */
        int16_t **l_268[7][5][7] = {{{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{(void*)0,&l_267,(void*)0,&l_267,&l_267,&l_267,&l_267}},{{&l_267,&l_267,(void*)0,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,(void*)0,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,(void*)0,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267}},{{&l_267,&l_267,&l_267,&l_267,&l_267,(void*)0,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267}},{{(void*)0,&l_267,(void*)0,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,(void*)0,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,(void*)0,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,(void*)0,&l_267}},{{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,(void*)0,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267}},{{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,(void*)0,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267}},{{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,(void*)0,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267},{&l_267,&l_267,&l_267,&l_267,&l_267,&l_267,&l_267}}};
        int16_t ***l_269 = &l_268[3][3][3];
        uint8_t *l_271 = &g_126[6][0];
        uint16_t *l_285[7];
        int32_t l_301 = 0x10F83735L;
        int32_t l_309 = (-1L);
        int32_t l_310 = 0xB351D394L;
        int32_t l_311 = 1L;
        int32_t l_312 = 0x72F92A1EL;
        int32_t l_313 = (-7L);
        int32_t l_314 = 0L;
        int32_t l_315 = (-5L);
        int32_t l_316 = 0xF598EF82L;
        int32_t l_353 = 0L;
        int i, j, k;
        for (i = 0; i < 7; i++)
            l_285[i] = &g_124;
        (*g_272) |= (((l_266 != ((*l_269) = l_268[3][0][2])) , l_270) == l_271);
        for (g_174 = 0; (g_174 <= 1); g_174 += 1)
        { /* block id: 97 */
            const uint8_t *l_276 = &l_102;
            const uint8_t **l_275 = &l_276;
            const uint8_t ***l_274 = &l_275;
            const uint8_t ****l_273[9][8][3] = {{{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,(void*)0},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,(void*)0}},{{&l_274,&l_274,&l_274},{&l_274,&l_274,(void*)0},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,(void*)0,(void*)0},{&l_274,(void*)0,&l_274},{&l_274,&l_274,&l_274}},{{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,(void*)0},{&l_274,&l_274,&l_274},{&l_274,&l_274,(void*)0},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274}},{{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,(void*)0},{&l_274,&l_274,&l_274},{&l_274,&l_274,(void*)0},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274}},{{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,(void*)0},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,(void*)0},{&l_274,&l_274,&l_274}},{{&l_274,(void*)0,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,(void*)0},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274}},{{(void*)0,&l_274,(void*)0},{&l_274,(void*)0,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{(void*)0,&l_274,&l_274},{&l_274,(void*)0,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274}},{{&l_274,(void*)0,&l_274},{&l_274,&l_274,&l_274},{&l_274,(void*)0,&l_274},{&l_274,&l_274,&l_274},{&l_274,(void*)0,&l_274},{&l_274,&l_274,(void*)0},{&l_274,(void*)0,&l_274},{(void*)0,&l_274,&l_274}},{{&l_274,(void*)0,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,(void*)0},{&l_274,(void*)0,&l_274},{(void*)0,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,&l_274,&l_274},{&l_274,(void*)0,&l_274}}};
            int i, j, k;
            (*g_277) = l_273[8][3][1];
        }
        for (g_142 = 0; (g_142 <= 1); g_142 += 1)
        { /* block id: 102 */
            int8_t l_288[2][4] = {{(-1L),4L,(-1L),(-1L)},{4L,4L,0xE5L,4L}};
            int32_t l_289 = 0x4A638292L;
            int32_t l_292 = 8L;
            int32_t l_295[10][3][3];
            int32_t *l_304 = &l_89[0];
            int32_t *l_305 = &l_89[0];
            int32_t *l_306 = &l_292;
            int32_t *l_307 = &l_301;
            int32_t *l_308[1][8];
            uint16_t l_355 = 0x7595L;
            int i, j, k;
            for (i = 0; i < 10; i++)
            {
                for (j = 0; j < 3; j++)
                {
                    for (k = 0; k < 3; k++)
                        l_295[i][j][k] = 0xE4C1CF03L;
                }
            }
            for (i = 0; i < 1; i++)
            {
                for (j = 0; j < 8; j++)
                    l_308[i][j] = &l_295[1][2][1];
            }
        }
    }
    for (g_185 = (-17); (g_185 != (-16)); g_185++)
    { /* block id: 170 */
        int16_t l_385 = 0x6674L;
        int32_t l_388 = (-1L);
        l_385 ^= (**p_54);
        for (g_110 = 0; (g_110 <= 2); g_110 += 1)
        { /* block id: 174 */
            l_388 |= ((safe_div_func_int64_t_s_s(p_55, (-5L))) <= l_385);
        }
    }
    return (*g_339);
}


/* ------------------------------------------ */
/* 
 * reads : g_43 g_44 g_71
 * writes: g_44
 */
static uint64_t  func_58(uint8_t  p_59, int64_t  p_60, uint16_t  p_61, int32_t ** p_62)
{ /* block id: 11 */
    int32_t *l_70 = &g_71;
    int32_t *l_72 = &g_71;
    int32_t *l_73 = &g_71;
    int32_t *l_74 = &g_71;
    int32_t *l_75[8] = {&g_71,&g_71,&g_71,&g_71,&g_71,&g_71,&g_71,&g_71};
    uint8_t l_76[6] = {247UL,247UL,247UL,247UL,247UL,247UL};
    int i;
    (*p_62) = (*g_43);
    l_76[3]--;
    return (*l_72);
}




/* ---------------------------------------- */
int main (int argc, char* argv[])
{
    int i, j, k;
    int print_hash_value = 0;
    if (argc == 2 && strcmp(argv[1], "1") == 0) print_hash_value = 1;
    platform_main_begin();
    crc32_gentab();
    func_1();
    transparent_crc(g_3, "g_3", print_hash_value);
    transparent_crc(g_67, "g_67", print_hash_value);
    transparent_crc(g_71, "g_71", print_hash_value);
    transparent_crc(g_110, "g_110", print_hash_value);
    transparent_crc(g_124, "g_124", print_hash_value);
    for (i = 0; i < 7; i++)
    {
        for (j = 0; j < 1; j++)
        {
            transparent_crc(g_126[i][j], "g_126[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_142, "g_142", print_hash_value);
    for (i = 0; i < 5; i++)
    {
        for (j = 0; j < 4; j++)
        {
            transparent_crc(g_159[i][j], "g_159[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_160, "g_160", print_hash_value);
    transparent_crc(g_172, "g_172", print_hash_value);
    transparent_crc(g_174, "g_174", print_hash_value);
    transparent_crc(g_185, "g_185", print_hash_value);
    transparent_crc(g_209, "g_209", print_hash_value);
    transparent_crc(g_236, "g_236", print_hash_value);
    transparent_crc(g_259, "g_259", print_hash_value);
    transparent_crc(g_340, "g_340", print_hash_value);
    transparent_crc(g_502, "g_502", print_hash_value);
    transparent_crc(g_518, "g_518", print_hash_value);
    transparent_crc(g_571, "g_571", print_hash_value);
    transparent_crc(g_592, "g_592", print_hash_value);
    transparent_crc(g_615, "g_615", print_hash_value);
    transparent_crc(g_659, "g_659", print_hash_value);
    for (i = 0; i < 1; i++)
    {
        transparent_crc(g_689[i], "g_689[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_753, "g_753", print_hash_value);
    transparent_crc(g_821, "g_821", print_hash_value);
    for (i = 0; i < 10; i++)
    {
        transparent_crc(g_935[i], "g_935[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    for (i = 0; i < 10; i++)
    {
        transparent_crc(g_1188[i], "g_1188[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_1348, "g_1348", print_hash_value);
    transparent_crc(g_1412, "g_1412", print_hash_value);
    transparent_crc(g_1413, "g_1413", print_hash_value);
    transparent_crc(g_1510, "g_1510", print_hash_value);
    transparent_crc(g_1513, "g_1513", print_hash_value);
    for (i = 0; i < 1; i++)
    {
        for (j = 0; j < 5; j++)
        {
            transparent_crc(g_1537[i][j], "g_1537[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_1779, "g_1779", print_hash_value);
    transparent_crc(g_1927, "g_1927", print_hash_value);
    transparent_crc(g_2047, "g_2047", print_hash_value);
    transparent_crc(g_2056, "g_2056", print_hash_value);
    for (i = 0; i < 4; i++)
    {
        transparent_crc(g_2070[i], "g_2070[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_2114, "g_2114", print_hash_value);
    transparent_crc(g_2335, "g_2335", print_hash_value);
    transparent_crc(g_2381, "g_2381", print_hash_value);
    transparent_crc(g_2602, "g_2602", print_hash_value);
    transparent_crc(g_2603, "g_2603", print_hash_value);
    for (i = 0; i < 1; i++)
    {
        transparent_crc(g_2871[i], "g_2871[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_2898, "g_2898", print_hash_value);
    platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
    return 0;
}

/************************ statistics *************************
XXX max struct depth: 0
breakdown:
   depth: 0, occurrence: 759
XXX total union variables: 0

XXX non-zero bitfields defined in structs: 0
XXX zero bitfields defined in structs: 0
XXX const bitfields defined in structs: 0
XXX volatile bitfields defined in structs: 0
XXX structs with bitfields in the program: 0
breakdown:
XXX full-bitfields structs in the program: 0
breakdown:
XXX times a bitfields struct's address is taken: 0
XXX times a bitfields struct on LHS: 0
XXX times a bitfields struct on RHS: 0
XXX times a single bitfield on LHS: 0
XXX times a single bitfield on RHS: 0

XXX max expression depth: 40
breakdown:
   depth: 1, occurrence: 344
   depth: 2, occurrence: 86
   depth: 3, occurrence: 14
   depth: 4, occurrence: 6
   depth: 5, occurrence: 1
   depth: 6, occurrence: 1
   depth: 7, occurrence: 4
   depth: 12, occurrence: 1
   depth: 13, occurrence: 1
   depth: 14, occurrence: 3
   depth: 15, occurrence: 4
   depth: 17, occurrence: 5
   depth: 18, occurrence: 6
   depth: 19, occurrence: 5
   depth: 20, occurrence: 2
   depth: 21, occurrence: 7
   depth: 22, occurrence: 3
   depth: 23, occurrence: 1
   depth: 24, occurrence: 2
   depth: 25, occurrence: 2
   depth: 26, occurrence: 5
   depth: 27, occurrence: 4
   depth: 28, occurrence: 3
   depth: 29, occurrence: 4
   depth: 30, occurrence: 3
   depth: 31, occurrence: 4
   depth: 33, occurrence: 1
   depth: 34, occurrence: 1
   depth: 36, occurrence: 2
   depth: 40, occurrence: 2

XXX total number of pointers: 620

XXX times a variable address is taken: 1664
XXX times a pointer is dereferenced on RHS: 436
breakdown:
   depth: 1, occurrence: 265
   depth: 2, occurrence: 126
   depth: 3, occurrence: 28
   depth: 4, occurrence: 15
   depth: 5, occurrence: 2
XXX times a pointer is dereferenced on LHS: 342
breakdown:
   depth: 1, occurrence: 276
   depth: 2, occurrence: 34
   depth: 3, occurrence: 21
   depth: 4, occurrence: 8
   depth: 5, occurrence: 3
XXX times a pointer is compared with null: 59
XXX times a pointer is compared with address of another variable: 14
XXX times a pointer is compared with another pointer: 12
XXX times a pointer is qualified to be dereferenced: 10432

XXX max dereference level: 5
breakdown:
   level: 0, occurrence: 0
   level: 1, occurrence: 1199
   level: 2, occurrence: 738
   level: 3, occurrence: 371
   level: 4, occurrence: 172
   level: 5, occurrence: 79
XXX number of pointers point to pointers: 329
XXX number of pointers point to scalars: 291
XXX number of pointers point to structs: 0
XXX percent of pointers has null in alias set: 28.9
XXX average alias set size: 1.44

XXX times a non-volatile is read: 2573
XXX times a non-volatile is write: 1142
XXX times a volatile is read: 124
XXX    times read thru a pointer: 62
XXX times a volatile is write: 50
XXX    times written thru a pointer: 23
XXX times a volatile is available for access: 2.46e+03
XXX percentage of non-volatile access: 95.5

XXX forward jumps: 0
XXX backward jumps: 4

XXX stmts: 346
XXX max block depth: 5
breakdown:
   depth: 0, occurrence: 33
   depth: 1, occurrence: 38
   depth: 2, occurrence: 60
   depth: 3, occurrence: 51
   depth: 4, occurrence: 59
   depth: 5, occurrence: 105

XXX percentage a fresh-made variable is used: 15.5
XXX percentage an existing variable is used: 84.5
********************* end of statistics **********************/

 /********************* This is a debug version  **********************/


